public abstract class DefaultConfigurationProperties<T> extends Object
| Constructor and Description |
|---|
DefaultConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
int |
getConsumerTemplateCacheSize() |
int |
getDurationMaxIdleSeconds() |
int |
getDurationMaxMessages() |
int |
getDurationMaxSeconds() |
String |
getFileConfigurations() |
String |
getJmxManagementNamePattern() |
org.apache.camel.ManagementStatisticsLevel |
getJmxManagementStatisticsLevel() |
int |
getLogDebugMaxChars() |
String |
getName() |
int |
getProducerTemplateCacheSize() |
String |
getRouteFilterExcludePattern() |
String |
getRouteFilterIncludePattern() |
int |
getShutdownTimeout() |
int |
getStreamCachingBufferSize() |
String |
getStreamCachingSpoolCipher() |
String |
getStreamCachingSpoolDirectory() |
long |
getStreamCachingSpoolThreshold() |
String |
getStreamCachingSpoolUsedHeapMemoryLimit() |
int |
getStreamCachingSpoolUsedHeapMemoryThreshold() |
String |
getThreadNamePattern() |
boolean |
isAllowUseOriginalMessage() |
boolean |
isAutoStartup() |
boolean |
isEndpointRuntimeStatisticsEnabled() |
boolean |
isHandleFault() |
boolean |
isJmxCreateConnector() |
boolean |
isJmxEnabled() |
boolean |
isLoadTypeConverters() |
boolean |
isLogExhaustedMessageBody() |
boolean |
isLogMask() |
boolean |
isMessageHistory() |
boolean |
isShutdownLogInflightExchangesOnTimeout() |
boolean |
isShutdownNowOnTimeout() |
boolean |
isShutdownRoutesInReverseOrder() |
boolean |
isShutdownSuppressLoggingOnTimeout() |
boolean |
isStreamCachingAnySpoolRules() |
boolean |
isStreamCachingEnabled() |
boolean |
isStreamCachingRemoveSpoolDirectoryWhenStopping() |
boolean |
isStreamCachingStatisticsEnabled() |
boolean |
isTracing() |
boolean |
isUseBreadcrumb() |
boolean |
isUseDataType() |
boolean |
isUseMdcLogging() |
void |
setAllowUseOriginalMessage(boolean allowUseOriginalMessage)
Sets whether to allow access to the original message from Camel's error handler,
or from org.apache.camel.spi.UnitOfWork.getOriginalInMessage().
|
void |
setAutoStartup(boolean autoStartup)
Sets whether the object should automatically start when Camel starts.
|
void |
setConsumerTemplateCacheSize(int consumerTemplateCacheSize)
Consumer template endpoints cache size.
|
void |
setDurationMaxIdleSeconds(int durationMaxIdleSeconds)
To specify for how long time in seconds Camel can be idle before automatic terminating the JVM.
|
void |
setDurationMaxMessages(int durationMaxMessages)
To specify how many messages to process by Camel before automatic terminating the JVM.
|
void |
setDurationMaxSeconds(int durationMaxSeconds)
To specify for how long time in seconds to keep running the JVM before automatic terminating the JVM.
|
void |
setEndpointRuntimeStatisticsEnabled(boolean endpointRuntimeStatisticsEnabled)
Sets whether endpoint runtime statistics is enabled (gathers runtime usage of each incoming and outgoing endpoints).
|
void |
setFileConfigurations(String fileConfigurations)
Directory to load additional configuration files that contains
configuration values that takes precedence over any other configuration.
|
void |
setHandleFault(boolean handleFault)
Sets whether fault handling is enabled or not.
|
void |
setJmxCreateConnector(boolean jmxCreateConnector)
Whether JMX connector is created, allowing clients to connect remotely
The default value is false.
|
void |
setJmxEnabled(boolean jmxEnabled)
Enable JMX in your Camel application.
|
void |
setJmxManagementNamePattern(String jmxManagementNamePattern)
The naming pattern for creating the CamelContext JMX management name.
|
void |
setJmxManagementStatisticsLevel(org.apache.camel.ManagementStatisticsLevel jmxManagementStatisticsLevel)
Sets the JMX statistics level
The level can be set to Extended to gather additional information
The default value is Default.
|
void |
setLoadTypeConverters(boolean loadTypeConverters)
Whether to load custom type converters by scanning classpath.
|
void |
setLogDebugMaxChars(int logDebugMaxChars)
Is used to limit the maximum length of the logging Camel message bodies.
|
void |
setLogExhaustedMessageBody(boolean logExhaustedMessageBody)
Sets whether to log exhausted message body with message history.
|
void |
setLogMask(boolean logMask)
Sets whether log mask is enabled or not.
|
void |
setMessageHistory(boolean messageHistory)
Sets whether message history is enabled or not.
|
void |
setName(String name)
Sets the name of the CamelContext.
|
void |
setProducerTemplateCacheSize(int producerTemplateCacheSize)
Producer template endpoints cache size.
|
void |
setRouteFilterExcludePattern(String exclude)
Used for filtering routes routes matching the given pattern, which follows the following rules:
- Match by route id
- Match by route input endpoint uri
The matching is using exact match, by wildcard and regular expression as documented by
PatternHelper.matchPattern(String, String). |
void |
setRouteFilterIncludePattern(String include)
Used for filtering routes routes matching the given pattern, which follows the following rules:
- Match by route id
- Match by route input endpoint uri
The matching is using exact match, by wildcard and regular expression as documented by
PatternHelper.matchPattern(String, String). |
void |
setShutdownLogInflightExchangesOnTimeout(boolean shutdownLogInflightExchangesOnTimeout)
Sets whether to log information about the inflight Exchanges which are still running
during a shutdown which didn't complete without the given timeout.
|
void |
setShutdownNowOnTimeout(boolean shutdownNowOnTimeout)
Sets whether to force shutdown of all consumers when a timeout occurred and thus
not all consumers was shutdown within that period.
|
void |
setShutdownRoutesInReverseOrder(boolean shutdownRoutesInReverseOrder)
Sets whether routes should be shutdown in reverse or the same order as they where started.
|
void |
setShutdownSuppressLoggingOnTimeout(boolean shutdownSuppressLoggingOnTimeout)
Whether Camel should try to suppress logging during shutdown and timeout was triggered,
meaning forced shutdown is happening.
|
void |
setShutdownTimeout(int shutdownTimeout)
Timeout in seconds to graceful shutdown Camel.
|
void |
setStreamCachingAnySpoolRules(boolean streamCachingAnySpoolRules)
Sets whether if just any of the org.apache.camel.spi.StreamCachingStrategy.SpoolRule rules
returns true then shouldSpoolCache(long) returns true, to allow spooling to disk.
|
void |
setStreamCachingBufferSize(int streamCachingBufferSize)
Sets the stream caching buffer size to use when allocating in-memory buffers used for in-memory stream caches.
|
void |
setStreamCachingEnabled(boolean streamCachingEnabled)
Sets whether stream caching is enabled or not.
|
void |
setStreamCachingRemoveSpoolDirectoryWhenStopping(boolean streamCachingRemoveSpoolDirectoryWhenStopping)
Whether to remove stream caching temporary directory when stopping.
|
void |
setStreamCachingSpoolCipher(String streamCachingSpoolCipher)
Sets a stream caching cipher name to use when spooling to disk to write with encryption.
|
void |
setStreamCachingSpoolDirectory(String streamCachingSpoolDirectory)
Sets the stream caching spool (temporary) directory to use for overflow and spooling to disk.
|
void |
setStreamCachingSpoolThreshold(long streamCachingSpoolThreshold)
Stream caching threshold in bytes when overflow to disk is activated.
|
void |
setStreamCachingSpoolUsedHeapMemoryLimit(String streamCachingSpoolUsedHeapMemoryLimit)
Sets what the upper bounds should be when streamCachingSpoolUsedHeapMemoryThreshold is in use.
|
void |
setStreamCachingSpoolUsedHeapMemoryThreshold(int streamCachingSpoolUsedHeapMemoryThreshold)
Sets a percentage (1-99) of used heap memory threshold to activate stream caching spooling to disk.
|
void |
setStreamCachingStatisticsEnabled(boolean streamCachingStatisticsEnabled)
Sets whether stream caching statistics is enabled.
|
void |
setThreadNamePattern(String threadNamePattern)
Sets the thread name pattern used for creating the full thread name.
|
void |
setTracing(boolean tracing)
Sets whether tracing is enabled or not.
|
void |
setUseBreadcrumb(boolean useBreadcrumb)
Set whether breadcrumb is enabled.
|
void |
setUseDataType(boolean useDataType)
Whether to enable using data type on Camel messages.
|
void |
setUseMdcLogging(boolean useMdcLogging)
To turn on MDC logging
|
T |
withAllowUseOriginalMessage(boolean allowUseOriginalMessage)
Sets whether to allow access to the original message from Camel's error handler,
or from org.apache.camel.spi.UnitOfWork.getOriginalInMessage().
|
T |
withAutoStartup(boolean autoStartup)
Sets whether the object should automatically start when Camel starts.
|
T |
withConsumerTemplateCacheSize(int consumerTemplateCacheSize)
Consumer template endpoints cache size.
|
T |
withDurationMaxIdleSeconds(int durationMaxIdleSeconds)
To specify for how long time in seconds Camel can be idle before automatic terminating the JVM.
|
T |
withDurationMaxMessages(int durationMaxMessages)
To specify how many messages to process by Camel before automatic terminating the JVM.
|
T |
withDurationMaxSeconds(int durationMaxSeconds)
To specify for how long time in seconds to keep running the JVM before automatic terminating the JVM.
|
T |
withEndpointRuntimeStatisticsEnabled(boolean endpointRuntimeStatisticsEnabled)
Sets whether endpoint runtime statistics is enabled (gathers runtime usage of each incoming and outgoing endpoints).
|
T |
withFileConfigurations(String fileConfigurations)
Directory to load additional configuration files that contains
configuration values that takes precedence over any other configuration.
|
T |
withHandleFault(boolean handleFault)
Sets whether fault handling is enabled or not.
|
T |
withJmxCreateConnector(boolean jmxCreateConnector)
Whether JMX connector is created, allowing clients to connect remotely
The default value is false.
|
T |
withJmxEnabled(boolean jmxEnabled)
Enable JMX in your Camel application.
|
T |
withJmxManagementNamePattern(String jmxManagementNamePattern)
The naming pattern for creating the CamelContext JMX management name.
|
T |
withJmxManagementStatisticsLevel(org.apache.camel.ManagementStatisticsLevel jmxManagementStatisticsLevel)
Sets the JMX statistics level
The level can be set to Extended to gather additional information
The default value is Default.
|
T |
withLoadTypeConverters(boolean loadTypeConverters)
Whether to load custom type converters by scanning classpath.
|
T |
withLogDebugMaxChars(int logDebugMaxChars)
Is used to limit the maximum length of the logging Camel message bodies.
|
T |
withLogExhaustedMessageBody(boolean logExhaustedMessageBody)
Sets whether to log exhausted message body with message history.
|
T |
withLogMask(boolean logMask)
Sets whether log mask is enabled or not.
|
T |
withMessageHistory(boolean messageHistory)
Sets whether message history is enabled or not.
|
T |
withName(String name)
Sets the name of the CamelContext.
|
T |
withProducerTemplateCacheSize(int producerTemplateCacheSize)
Producer template endpoints cache size.
|
T |
withRouteFilterExcludePattern(String routeFilterExcludePattern)
Used for filtering routes routes matching the given pattern, which follows the following rules:
- Match by route id
- Match by route input endpoint uri
The matching is using exact match, by wildcard and regular expression as documented by
PatternHelper.matchPattern(String, String). |
T |
withRouteFilterIncludePattern(String routeFilterIncludePattern)
Used for filtering routes routes matching the given pattern, which follows the following rules:
- Match by route id
- Match by route input endpoint uri
The matching is using exact match, by wildcard and regular expression as documented by
PatternHelper.matchPattern(String, String). |
T |
withShutdownLogInflightExchangesOnTimeout(boolean shutdownLogInflightExchangesOnTimeout)
Sets whether to log information about the inflight Exchanges which are still running
during a shutdown which didn't complete without the given timeout.
|
T |
withShutdownNowOnTimeout(boolean shutdownNowOnTimeout)
Sets whether to force shutdown of all consumers when a timeout occurred and thus
not all consumers was shutdown within that period.
|
T |
withShutdownRoutesInReverseOrder(boolean shutdownRoutesInReverseOrder)
Sets whether routes should be shutdown in reverse or the same order as they where started.
|
T |
withShutdownSuppressLoggingOnTimeout(boolean shutdownSuppressLoggingOnTimeout)
Whether Camel should try to suppress logging during shutdown and timeout was triggered,
meaning forced shutdown is happening.
|
T |
withShutdownTimeout(int shutdownTimeout)
Timeout in seconds to graceful shutdown Camel.
|
T |
withStreamCachingAnySpoolRules(boolean streamCachingAnySpoolRules)
Sets whether if just any of the org.apache.camel.spi.StreamCachingStrategy.SpoolRule rules
returns true then shouldSpoolCache(long) returns true, to allow spooling to disk.
|
T |
withStreamCachingBufferSize(int streamCachingBufferSize)
Sets the stream caching buffer size to use when allocating in-memory buffers used for in-memory stream caches.
|
T |
withStreamCachingEnabled(boolean streamCachingEnabled)
Sets whether stream caching is enabled or not.
|
T |
withStreamCachingRemoveSpoolDirectoryWhenStopping(boolean streamCachingRemoveSpoolDirectoryWhenStopping)
Whether to remove stream caching temporary directory when stopping.
|
T |
withStreamCachingSpoolCipher(String streamCachingSpoolCipher)
Sets a stream caching cipher name to use when spooling to disk to write with encryption.
|
T |
withStreamCachingSpoolDirectory(String streamCachingSpoolDirectory)
Sets the stream caching spool (temporary) directory to use for overflow and spooling to disk.
|
T |
withStreamCachingSpoolThreshold(long streamCachingSpoolThreshold)
Stream caching threshold in bytes when overflow to disk is activated.
|
T |
withStreamCachingSpoolUsedHeapMemoryLimit(String streamCachingSpoolUsedHeapMemoryLimit)
Sets what the upper bounds should be when streamCachingSpoolUsedHeapMemoryThreshold is in use.
|
T |
withStreamCachingSpoolUsedHeapMemoryThreshold(int streamCachingSpoolUsedHeapMemoryThreshold)
Sets a percentage (1-99) of used heap memory threshold to activate stream caching spooling to disk.
|
T |
withStreamCachingStatisticsEnabled(boolean streamCachingStatisticsEnabled)
Sets whether stream caching statistics is enabled.
|
T |
withThreadNamePattern(String threadNamePattern)
Sets the thread name pattern used for creating the full thread name.
|
T |
withTracing(boolean tracing)
Sets whether tracing is enabled or not.
|
T |
withUseBreadcrumb(boolean useBreadcrumb)
Set whether breadcrumb is enabled.
|
T |
withUseDataType(boolean useDataType)
Whether to enable using data type on Camel messages.
|
T |
withUseMdcLogging(boolean useMdcLogging)
To turn on MDC logging
|
public String getName()
public void setName(String name)
public int getDurationMaxSeconds()
public void setDurationMaxSeconds(int durationMaxSeconds)
public int getDurationMaxIdleSeconds()
public void setDurationMaxIdleSeconds(int durationMaxIdleSeconds)
public int getDurationMaxMessages()
public void setDurationMaxMessages(int durationMaxMessages)
public int getShutdownTimeout()
public void setShutdownTimeout(int shutdownTimeout)
public boolean isShutdownSuppressLoggingOnTimeout()
public void setShutdownSuppressLoggingOnTimeout(boolean shutdownSuppressLoggingOnTimeout)
public boolean isShutdownNowOnTimeout()
public void setShutdownNowOnTimeout(boolean shutdownNowOnTimeout)
public boolean isShutdownRoutesInReverseOrder()
public void setShutdownRoutesInReverseOrder(boolean shutdownRoutesInReverseOrder)
public boolean isShutdownLogInflightExchangesOnTimeout()
public void setShutdownLogInflightExchangesOnTimeout(boolean shutdownLogInflightExchangesOnTimeout)
public String getFileConfigurations()
public void setFileConfigurations(String fileConfigurations)
public boolean isJmxEnabled()
public void setJmxEnabled(boolean jmxEnabled)
public int getProducerTemplateCacheSize()
public void setProducerTemplateCacheSize(int producerTemplateCacheSize)
public int getConsumerTemplateCacheSize()
public void setConsumerTemplateCacheSize(int consumerTemplateCacheSize)
public boolean isLoadTypeConverters()
public void setLoadTypeConverters(boolean loadTypeConverters)
public int getLogDebugMaxChars()
public void setLogDebugMaxChars(int logDebugMaxChars)
public boolean isStreamCachingEnabled()
public void setStreamCachingEnabled(boolean streamCachingEnabled)
public String getStreamCachingSpoolDirectory()
public void setStreamCachingSpoolDirectory(String streamCachingSpoolDirectory)
public String getStreamCachingSpoolCipher()
public void setStreamCachingSpoolCipher(String streamCachingSpoolCipher)
public long getStreamCachingSpoolThreshold()
public void setStreamCachingSpoolThreshold(long streamCachingSpoolThreshold)
public int getStreamCachingSpoolUsedHeapMemoryThreshold()
public void setStreamCachingSpoolUsedHeapMemoryThreshold(int streamCachingSpoolUsedHeapMemoryThreshold)
public String getStreamCachingSpoolUsedHeapMemoryLimit()
public void setStreamCachingSpoolUsedHeapMemoryLimit(String streamCachingSpoolUsedHeapMemoryLimit)
public boolean isStreamCachingAnySpoolRules()
public void setStreamCachingAnySpoolRules(boolean streamCachingAnySpoolRules)
public int getStreamCachingBufferSize()
public void setStreamCachingBufferSize(int streamCachingBufferSize)
public boolean isStreamCachingRemoveSpoolDirectoryWhenStopping()
public void setStreamCachingRemoveSpoolDirectoryWhenStopping(boolean streamCachingRemoveSpoolDirectoryWhenStopping)
public boolean isStreamCachingStatisticsEnabled()
public void setStreamCachingStatisticsEnabled(boolean streamCachingStatisticsEnabled)
public boolean isTracing()
public void setTracing(boolean tracing)
public boolean isMessageHistory()
public void setMessageHistory(boolean messageHistory)
public boolean isLogMask()
public void setLogMask(boolean logMask)
public boolean isLogExhaustedMessageBody()
public void setLogExhaustedMessageBody(boolean logExhaustedMessageBody)
public boolean isHandleFault()
public void setHandleFault(boolean handleFault)
public boolean isAutoStartup()
public void setAutoStartup(boolean autoStartup)
public boolean isAllowUseOriginalMessage()
public void setAllowUseOriginalMessage(boolean allowUseOriginalMessage)
public boolean isEndpointRuntimeStatisticsEnabled()
public void setEndpointRuntimeStatisticsEnabled(boolean endpointRuntimeStatisticsEnabled)
public boolean isUseDataType()
public void setUseDataType(boolean useDataType)
public boolean isUseBreadcrumb()
public void setUseBreadcrumb(boolean useBreadcrumb)
public org.apache.camel.ManagementStatisticsLevel getJmxManagementStatisticsLevel()
public void setJmxManagementStatisticsLevel(org.apache.camel.ManagementStatisticsLevel jmxManagementStatisticsLevel)
public String getJmxManagementNamePattern()
public void setJmxManagementNamePattern(String jmxManagementNamePattern)
public boolean isJmxCreateConnector()
public void setJmxCreateConnector(boolean jmxCreateConnector)
public boolean isUseMdcLogging()
public void setUseMdcLogging(boolean useMdcLogging)
public String getThreadNamePattern()
public void setThreadNamePattern(String threadNamePattern)
public String getRouteFilterIncludePattern()
public void setRouteFilterIncludePattern(String include)
PatternHelper.matchPattern(String, String).
For example to only include routes which starts with foo in their route id's, use: include=foo*
And to exclude routes which starts from JMS endpoints, use: exclude=jms:*
Multiple patterns can be separated by comma, for example to exclude both foo and bar routes, use: exclude=foo*,bar*
Exclude takes precedence over include.public String getRouteFilterExcludePattern()
public void setRouteFilterExcludePattern(String exclude)
PatternHelper.matchPattern(String, String).
For example to only include routes which starts with foo in their route id's, use: include=foo*
And to exclude routes which starts from JMS endpoints, use: exclude=jms:*
Multiple patterns can be separated by comma, for example to exclude both foo and bar routes, use: exclude=foo*,bar*
Exclude takes precedence over include.public T withDurationMaxSeconds(int durationMaxSeconds)
public T withDurationMaxIdleSeconds(int durationMaxIdleSeconds)
public T withDurationMaxMessages(int durationMaxMessages)
public T withShutdownTimeout(int shutdownTimeout)
public T withShutdownSuppressLoggingOnTimeout(boolean shutdownSuppressLoggingOnTimeout)
public T withShutdownNowOnTimeout(boolean shutdownNowOnTimeout)
public T withShutdownRoutesInReverseOrder(boolean shutdownRoutesInReverseOrder)
public T withShutdownLogInflightExchangesOnTimeout(boolean shutdownLogInflightExchangesOnTimeout)
public T withFileConfigurations(String fileConfigurations)
public T withJmxEnabled(boolean jmxEnabled)
public T withProducerTemplateCacheSize(int producerTemplateCacheSize)
public T withConsumerTemplateCacheSize(int consumerTemplateCacheSize)
public T withLoadTypeConverters(boolean loadTypeConverters)
public T withLogDebugMaxChars(int logDebugMaxChars)
public T withStreamCachingEnabled(boolean streamCachingEnabled)
public T withStreamCachingSpoolDirectory(String streamCachingSpoolDirectory)
public T withStreamCachingSpoolCipher(String streamCachingSpoolCipher)
public T withStreamCachingSpoolThreshold(long streamCachingSpoolThreshold)
public T withStreamCachingSpoolUsedHeapMemoryThreshold(int streamCachingSpoolUsedHeapMemoryThreshold)
public T withStreamCachingSpoolUsedHeapMemoryLimit(String streamCachingSpoolUsedHeapMemoryLimit)
public T withStreamCachingAnySpoolRules(boolean streamCachingAnySpoolRules)
public T withStreamCachingBufferSize(int streamCachingBufferSize)
public T withStreamCachingRemoveSpoolDirectoryWhenStopping(boolean streamCachingRemoveSpoolDirectoryWhenStopping)
public T withStreamCachingStatisticsEnabled(boolean streamCachingStatisticsEnabled)
public T withTracing(boolean tracing)
public T withMessageHistory(boolean messageHistory)
public T withLogMask(boolean logMask)
public T withLogExhaustedMessageBody(boolean logExhaustedMessageBody)
public T withHandleFault(boolean handleFault)
public T withAutoStartup(boolean autoStartup)
public T withAllowUseOriginalMessage(boolean allowUseOriginalMessage)
public T withEndpointRuntimeStatisticsEnabled(boolean endpointRuntimeStatisticsEnabled)
public T withUseDataType(boolean useDataType)
public T withUseBreadcrumb(boolean useBreadcrumb)
public T withJmxManagementStatisticsLevel(org.apache.camel.ManagementStatisticsLevel jmxManagementStatisticsLevel)
public T withJmxManagementNamePattern(String jmxManagementNamePattern)
public T withJmxCreateConnector(boolean jmxCreateConnector)
public T withUseMdcLogging(boolean useMdcLogging)
public T withThreadNamePattern(String threadNamePattern)
public T withRouteFilterIncludePattern(String routeFilterIncludePattern)
PatternHelper.matchPattern(String, String).
For example to only include routes which starts with foo in their route id's, use: include=foo*
And to exclude routes which starts from JMS endpoints, use: exclude=jms:*
Multiple patterns can be separated by comma, for example to exclude both foo and bar routes, use: exclude=foo*,bar*
Exclude takes precedence over include.public T withRouteFilterExcludePattern(String routeFilterExcludePattern)
PatternHelper.matchPattern(String, String).
For example to only include routes which starts with foo in their route id's, use: include=foo*
And to exclude routes which starts from JMS endpoints, use: exclude=jms:*
Multiple patterns can be separated by comma, for example to exclude both foo and bar routes, use: exclude=foo*,bar*
Exclude takes precedence over include.Apache Camel