public class MainConfigurationProperties extends DefaultConfigurationProperties<MainConfigurationProperties>
| Constructor and Description |
|---|
MainConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDurationHitExitCode() |
HystrixConfigurationProperties |
hystrix()
To configure Hystrix EIP
|
boolean |
isAutoConfigurationEnabled() |
boolean |
isAutoConfigurationEnvironmentVariablesEnabled() |
boolean |
isAutoConfigurationFailFast() |
boolean |
isAutoConfigurationLogSummary() |
boolean |
isAutowireComponentProperties() |
boolean |
isAutowireComponentPropertiesAllowPrivateSetter() |
boolean |
isAutowireComponentPropertiesDeep() |
boolean |
isHangupInterceptorEnabled() |
RestConfigurationProperties |
rest()
To configure Rest DSL
|
void |
setAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Whether auto configuration of components, dataformats, languages is enabled or not.
|
void |
setAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled)
Whether auto configuration should include OS environment variables as well.
|
void |
setAutoConfigurationFailFast(boolean autoConfigurationFailFast)
Whether auto configuration should fail fast when configuring one ore more properties fails for whatever reason
such as a invalid property name, etc.
|
void |
setAutoConfigurationLogSummary(boolean autoConfigurationLogSummary)
Whether auto configuration should log a summary with the configured properties.
|
void |
setAutowireComponentProperties(boolean autowireComponentProperties)
Whether autowiring components with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
void |
setAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
Whether autowiring components allows to use private setter method when setting the value.
|
void |
setAutowireComponentPropertiesDeep(boolean autowireComponentPropertiesDeep)
Whether autowiring components (with deep nesting by attempting to walk as deep down the object graph by creating new empty objects on the way if needed)
with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
void |
setDurationHitExitCode(int durationHitExitCode)
Sets the exit code for the application if duration was hit
|
void |
setHangupInterceptorEnabled(boolean hangupInterceptorEnabled)
Whether to use graceful hangup when Camel is stopping or when the JVM terminates.
|
MainConfigurationProperties |
withAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Whether auto configuration of components/dataformats/languages is enabled or not.
|
MainConfigurationProperties |
withAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled)
Whether auto configuration should include OS environment variables as well.
|
MainConfigurationProperties |
withAutoConfigurationFailFast(boolean autoConfigurationFailFast)
Whether auto configuration should fail fast when configuring one ore more properties fails for whatever reason
such as a invalid property name, etc.
|
MainConfigurationProperties |
withAutoConfigurationLogSummary(boolean autoConfigurationLogSummary)
Whether auto configuration should log a summary with the configured properties.
|
MainConfigurationProperties |
withAutowireComponentProperties(boolean autowireComponentProperties)
Whether autowiring components with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
MainConfigurationProperties |
withAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
Whether autowiring components (with deep nesting by attempting to walk as deep down the object graph by creating new empty objects on the way if needed)
with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
MainConfigurationProperties |
withAutowireComponentPropertiesDeep(boolean autowireComponentPropertiesDeep)
Whether autowiring components (with deep nesting by attempting to walk as deep down the object graph by creating new empty objects on the way if needed)
with properties that are of same type, which has been added to the Camel registry, as a singleton instance.
|
MainConfigurationProperties |
withDurationHitExitCode(int durationHitExitCode)
Sets the exit code for the application if duration was hit
|
MainConfigurationProperties |
withHangupInterceptorEnabled(boolean hangupInterceptorEnabled)
Whether to use graceful hangup when Camel is stopping or when the JVM terminates.
|
getConsumerTemplateCacheSize, getDurationMaxIdleSeconds, getDurationMaxMessages, getDurationMaxSeconds, getFileConfigurations, getJmxManagementNamePattern, getJmxManagementStatisticsLevel, getLogDebugMaxChars, getName, getProducerTemplateCacheSize, getRouteFilterExcludePattern, getRouteFilterIncludePattern, getShutdownTimeout, getStreamCachingBufferSize, getStreamCachingSpoolCipher, getStreamCachingSpoolDirectory, getStreamCachingSpoolThreshold, getStreamCachingSpoolUsedHeapMemoryLimit, getStreamCachingSpoolUsedHeapMemoryThreshold, getThreadNamePattern, isAllowUseOriginalMessage, isAutoStartup, isEndpointRuntimeStatisticsEnabled, isHandleFault, isJmxCreateConnector, isJmxEnabled, isLoadTypeConverters, isLogExhaustedMessageBody, isLogMask, isMessageHistory, isShutdownLogInflightExchangesOnTimeout, isShutdownNowOnTimeout, isShutdownRoutesInReverseOrder, isShutdownSuppressLoggingOnTimeout, isStreamCachingAnySpoolRules, isStreamCachingEnabled, isStreamCachingRemoveSpoolDirectoryWhenStopping, isStreamCachingStatisticsEnabled, isTracing, isUseBreadcrumb, isUseDataType, isUseMdcLogging, setAllowUseOriginalMessage, setAutoStartup, setConsumerTemplateCacheSize, setDurationMaxIdleSeconds, setDurationMaxMessages, setDurationMaxSeconds, setEndpointRuntimeStatisticsEnabled, setFileConfigurations, setHandleFault, setJmxCreateConnector, setJmxEnabled, setJmxManagementNamePattern, setJmxManagementStatisticsLevel, setLoadTypeConverters, setLogDebugMaxChars, setLogExhaustedMessageBody, setLogMask, setMessageHistory, setName, setProducerTemplateCacheSize, setRouteFilterExcludePattern, setRouteFilterIncludePattern, setShutdownLogInflightExchangesOnTimeout, setShutdownNowOnTimeout, setShutdownRoutesInReverseOrder, setShutdownSuppressLoggingOnTimeout, setShutdownTimeout, setStreamCachingAnySpoolRules, setStreamCachingBufferSize, setStreamCachingEnabled, setStreamCachingRemoveSpoolDirectoryWhenStopping, setStreamCachingSpoolCipher, setStreamCachingSpoolDirectory, setStreamCachingSpoolThreshold, setStreamCachingSpoolUsedHeapMemoryLimit, setStreamCachingSpoolUsedHeapMemoryThreshold, setStreamCachingStatisticsEnabled, setThreadNamePattern, setTracing, setUseBreadcrumb, setUseDataType, setUseMdcLogging, withAllowUseOriginalMessage, withAutoStartup, withConsumerTemplateCacheSize, withDurationMaxIdleSeconds, withDurationMaxMessages, withDurationMaxSeconds, withEndpointRuntimeStatisticsEnabled, withFileConfigurations, withHandleFault, withJmxCreateConnector, withJmxEnabled, withJmxManagementNamePattern, withJmxManagementStatisticsLevel, withLoadTypeConverters, withLogDebugMaxChars, withLogExhaustedMessageBody, withLogMask, withMessageHistory, withName, withProducerTemplateCacheSize, withRouteFilterExcludePattern, withRouteFilterIncludePattern, withShutdownLogInflightExchangesOnTimeout, withShutdownNowOnTimeout, withShutdownRoutesInReverseOrder, withShutdownSuppressLoggingOnTimeout, withShutdownTimeout, withStreamCachingAnySpoolRules, withStreamCachingBufferSize, withStreamCachingEnabled, withStreamCachingRemoveSpoolDirectoryWhenStopping, withStreamCachingSpoolCipher, withStreamCachingSpoolDirectory, withStreamCachingSpoolThreshold, withStreamCachingSpoolUsedHeapMemoryLimit, withStreamCachingSpoolUsedHeapMemoryThreshold, withStreamCachingStatisticsEnabled, withThreadNamePattern, withTracing, withUseBreadcrumb, withUseDataType, withUseMdcLoggingpublic HystrixConfigurationProperties hystrix()
public RestConfigurationProperties rest()
public boolean isAutoConfigurationEnabled()
public void setAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Registry.bind(String, Object) method
or by using the BindToRegistry annotation style.
This option is default enabled.public boolean isAutoConfigurationEnvironmentVariablesEnabled()
public void setAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled)
public boolean isAutoConfigurationFailFast()
public void setAutoConfigurationFailFast(boolean autoConfigurationFailFast)
public boolean isAutoConfigurationLogSummary()
public void setAutoConfigurationLogSummary(boolean autoConfigurationLogSummary)
public boolean isAutowireComponentProperties()
public void setAutowireComponentProperties(boolean autowireComponentProperties)
public boolean isAutowireComponentPropertiesDeep()
public void setAutowireComponentPropertiesDeep(boolean autowireComponentPropertiesDeep)
public boolean isAutowireComponentPropertiesAllowPrivateSetter()
public void setAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
public boolean isHangupInterceptorEnabled()
public void setHangupInterceptorEnabled(boolean hangupInterceptorEnabled)
public int getDurationHitExitCode()
public void setDurationHitExitCode(int durationHitExitCode)
public MainConfigurationProperties withAutoConfigurationEnabled(boolean autoConfigurationEnabled)
Registry.bind(String, Object) method
or by using the BindToRegistry annotation style.
This option is default enabled.public MainConfigurationProperties withAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled)
public MainConfigurationProperties withAutoConfigurationFailFast(boolean autoConfigurationFailFast)
public MainConfigurationProperties withAutoConfigurationLogSummary(boolean autoConfigurationLogSummary)
public MainConfigurationProperties withAutowireComponentProperties(boolean autowireComponentProperties)
public MainConfigurationProperties withAutowireComponentPropertiesDeep(boolean autowireComponentPropertiesDeep)
public MainConfigurationProperties withAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
public MainConfigurationProperties withHangupInterceptorEnabled(boolean hangupInterceptorEnabled)
public MainConfigurationProperties withDurationHitExitCode(int durationHitExitCode)
Apache Camel