@Metadata(label="spring,configuration")
public class CamelStreamCachingStrategyDefinition
extends org.apache.camel.model.IdentifiedType
Constructor and Description |
---|
CamelStreamCachingStrategyDefinition() |
Modifier and Type | Method and Description |
---|---|
String |
getAnySpoolRules() |
String |
getBufferSize() |
String |
getEnabled() |
String |
getRemoveSpoolDirectoryWhenStopping() |
String |
getSpoolChiper() |
String |
getSpoolDirectory() |
String |
getSpoolRules() |
String |
getSpoolThreshold() |
String |
getSpoolUsedHeapMemoryLimit() |
String |
getSpoolUsedHeapMemoryThreshold() |
String |
getStatisticsEnabled() |
void |
setAnySpoolRules(String anySpoolRules)
Sets whether if just any of the
StreamCachingStrategy.SpoolRule rules
returns true then shouldSpoolCache(long) returns true. |
void |
setBufferSize(String bufferSize)
Sets the buffer size to use when allocating in-memory buffers used for in-memory stream caches.
|
void |
setEnabled(String enabled)
Sets whether the stream caching is enabled.
|
void |
setRemoveSpoolDirectoryWhenStopping(String removeSpoolDirectoryWhenStopping)
Whether to remove the temporary directory when stopping.
|
void |
setSpoolChiper(String spoolChiper)
Sets a chiper name to use when spooling to disk to write with encryption.
|
void |
setSpoolDirectory(String spoolDirectory)
Sets the spool (temporary) directory to use for overflow and spooling to disk.
|
void |
setSpoolRules(String spoolRules)
Reference to one or more custom
StreamCachingStrategy.SpoolRule to use. |
void |
setSpoolThreshold(String spoolThreshold)
Threshold in bytes when overflow to disk is activated.
|
void |
setSpoolUsedHeapMemoryLimit(String spoolUsedHeapMemoryLimit)
Sets what the upper bounds should be when spoolUsedHeapMemoryThreshold
is in use.
|
void |
setSpoolUsedHeapMemoryThreshold(String spoolUsedHeapMemoryThreshold)
Sets a percentage (1-99) of used heap memory threshold to activate spooling to disk.
|
void |
setStatisticsEnabled(String statisticsEnabled)
Sets whether statistics is enabled.
|
public CamelStreamCachingStrategyDefinition()
public String getEnabled()
public void setEnabled(String enabled)
public String getSpoolDirectory()
public void setSpoolDirectory(String spoolDirectory)
public String getSpoolChiper()
public void setSpoolChiper(String spoolChiper)
public String getSpoolThreshold()
public void setSpoolThreshold(String spoolThreshold)
StreamCache.DEFAULT_SPOOL_THRESHOLD
bytes (eg 128kb).
Use -1 to disable overflow to disk.public String getSpoolUsedHeapMemoryThreshold()
public void setSpoolUsedHeapMemoryThreshold(String spoolUsedHeapMemoryThreshold)
public String getSpoolUsedHeapMemoryLimit()
public void setSpoolUsedHeapMemoryLimit(String spoolUsedHeapMemoryLimit)
public String getSpoolRules()
public void setSpoolRules(String spoolRules)
StreamCachingStrategy.SpoolRule
to use.
Multiple rules can be separated by comma.public String getBufferSize()
public void setBufferSize(String bufferSize)
IOHelper.DEFAULT_BUFFER_SIZE
public String getRemoveSpoolDirectoryWhenStopping()
public void setRemoveSpoolDirectoryWhenStopping(String removeSpoolDirectoryWhenStopping)
public String getStatisticsEnabled()
public void setStatisticsEnabled(String statisticsEnabled)
public String getAnySpoolRules()
public void setAnySpoolRules(String anySpoolRules)
StreamCachingStrategy.SpoolRule
rules
returns true then shouldSpoolCache(long) returns true.
If this option is false, then all the StreamCachingStrategy.SpoolRule
must
return true.
The default value is false which means that all the rules must return true.Apache Camel