public class MainConfigurationProperties extends DefaultConfigurationProperties<MainConfigurationProperties>
| Constructor and Description |
|---|
MainConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDurationHitExitCode() |
String |
getPackageScanRouteBuilders() |
HystrixConfigurationProperties |
hystrix()
To configure Circuit Breaker EIP with Hystrix
|
boolean |
isAutoConfigurationEnabled() |
boolean |
isAutoConfigurationEnvironmentVariablesEnabled() |
boolean |
isAutoConfigurationFailFast() |
boolean |
isAutoConfigurationLogSummary() |
boolean |
isAutowireComponentProperties() |
boolean |
isAutowireComponentPropertiesAllowPrivateSetter() |
boolean |
isAutowireComponentPropertiesDeep() |
boolean |
isAutowireComponentPropertiesNonNullOnly() |
boolean |
isHangupInterceptorEnabled() |
Resilience4jConfigurationProperties |
resilience4j()
To configure Circuit Breaker EIP with Resilience4j
|
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 |
setAutowireComponentPropertiesNonNullOnly(boolean autowireComponentPropertiesNonNullOnly)
Whether to only autowire if the property has no default value or has not been configured explicit.
|
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.
|
void |
setPackageScanRouteBuilders(String packageScanRouteBuilders)
Sets package names for scanning for
RouteBuilder classes as candidates to be included. |
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 |
withAutowireComponentPropertiesNonNullOnly(boolean autowireComponentPropertiesNonNullOnly)
Whether to only autowire if the property has no default value or has not been configured explicit.
|
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.
|
MainConfigurationProperties |
withPackageScanRouteBuilders(String packageScanRouteBuilders)
Sets package names for scanning for
RouteBuilder classes as candidates to be included. |
getBeanIntrospectionLoggingLevel, getConsumerTemplateCacheSize, getDurationMaxIdleSeconds, getDurationMaxMessages, getDurationMaxSeconds, getFileConfigurations, getJavaRoutesExcludePattern, getJavaRoutesIncludePattern, getJmxManagementNamePattern, getJmxManagementStatisticsLevel, getLogDebugMaxChars, getMdcLoggingKeysPattern, getName, getProducerTemplateCacheSize, getRouteFilterExcludePattern, getRouteFilterIncludePattern, getShutdownTimeout, getStreamCachingBufferSize, getStreamCachingSpoolCipher, getStreamCachingSpoolDirectory, getStreamCachingSpoolThreshold, getStreamCachingSpoolUsedHeapMemoryLimit, getStreamCachingSpoolUsedHeapMemoryThreshold, getThreadNamePattern, getTracingPattern, getXmlRests, getXmlRoutes, isAllowUseOriginalMessage, isAutoStartup, isBacklogTracing, isBeanIntrospectionExtendedStatistics, isCaseInsensitiveHeaders, isEndpointBasicPropertyBinding, isEndpointBridgeErrorHandler, isEndpointLazyStartProducer, isEndpointRuntimeStatisticsEnabled, isInflightRepositoryBrowseEnabled, isJmxEnabled, isLightweight, isLoadTypeConverters, isLogExhaustedMessageBody, isLogMask, isMessageHistory, isRoutesCollectorEnabled, isShutdownLogInflightExchangesOnTimeout, isShutdownNowOnTimeout, isShutdownRoutesInReverseOrder, isShutdownSuppressLoggingOnTimeout, isStreamCachingAnySpoolRules, isStreamCachingEnabled, isStreamCachingRemoveSpoolDirectoryWhenStopping, isStreamCachingStatisticsEnabled, isTracing, isUseBreadcrumb, isUseDataType, isUseMdcLogging, setAllowUseOriginalMessage, setAutoStartup, setBacklogTracing, setBeanIntrospectionExtendedStatistics, setBeanIntrospectionLoggingLevel, setCaseInsensitiveHeaders, setConsumerTemplateCacheSize, setDurationMaxIdleSeconds, setDurationMaxMessages, setDurationMaxSeconds, setEndpointBasicPropertyBinding, setEndpointBridgeErrorHandler, setEndpointLazyStartProducer, setEndpointRuntimeStatisticsEnabled, setFileConfigurations, setInflightRepositoryBrowseEnabled, setJavaRoutesExcludePattern, setJavaRoutesIncludePattern, setJmxEnabled, setJmxManagementNamePattern, setJmxManagementStatisticsLevel, setLightweight, setLoadTypeConverters, setLogDebugMaxChars, setLogExhaustedMessageBody, setLogMask, setMdcLoggingKeysPattern, setMessageHistory, setName, setProducerTemplateCacheSize, setRouteFilterExcludePattern, setRouteFilterIncludePattern, setRoutesCollectorEnabled, setShutdownLogInflightExchangesOnTimeout, setShutdownNowOnTimeout, setShutdownRoutesInReverseOrder, setShutdownSuppressLoggingOnTimeout, setShutdownTimeout, setStreamCachingAnySpoolRules, setStreamCachingBufferSize, setStreamCachingEnabled, setStreamCachingRemoveSpoolDirectoryWhenStopping, setStreamCachingSpoolCipher, setStreamCachingSpoolDirectory, setStreamCachingSpoolThreshold, setStreamCachingSpoolUsedHeapMemoryLimit, setStreamCachingSpoolUsedHeapMemoryThreshold, setStreamCachingStatisticsEnabled, setThreadNamePattern, setTracing, setTracingPattern, setUseBreadcrumb, setUseDataType, setUseMdcLogging, setXmlRests, setXmlRoutes, withAllowUseOriginalMessage, withAutoStartup, withBacklogTracing, withBeanIntrospectionExtendedStatistics, withBeanIntrospectionLoggingLevel, withCaseInsensitiveHeaders, withConsumerTemplateCacheSize, withDurationMaxIdleSeconds, withDurationMaxMessages, withDurationMaxSeconds, withEndpointBasicPropertyBinding, withEndpointBridgeErrorHandler, withEndpointLazyStartProducer, withEndpointRuntimeStatisticsEnabled, withFileConfigurations, withInflightRepositoryBrowseEnabled, withJavaRoutesExcludePattern, withJavaRoutesIncludePattern, withJmxEnabled, withJmxManagementNamePattern, withJmxManagementStatisticsLevel, withLightweight, withLoadTypeConverters, withLogDebugMaxChars, withLogExhaustedMessageBody, withLogMask, withMdcLoggingKeysPattern, withMessageHistory, withName, withProducerTemplateCacheSize, withRouteFilterExcludePattern, withRouteFilterIncludePattern, withRoutesCollectorEnabled, withShutdownLogInflightExchangesOnTimeout, withShutdownNowOnTimeout, withShutdownRoutesInReverseOrder, withShutdownSuppressLoggingOnTimeout, withShutdownTimeout, withStreamCachingAnySpoolRules, withStreamCachingBufferSize, withStreamCachingEnabled, withStreamCachingRemoveSpoolDirectoryWhenStopping, withStreamCachingSpoolCipher, withStreamCachingSpoolDirectory, withStreamCachingSpoolThreshold, withStreamCachingSpoolUsedHeapMemoryLimit, withStreamCachingSpoolUsedHeapMemoryThreshold, withStreamCachingStatisticsEnabled, withThreadNamePattern, withTracing, withTracingPattern, withUseBreadcrumb, withUseDataType, withUseMdcLogging, withXmlRests, withXmlRoutespublic HystrixConfigurationProperties hystrix()
public Resilience4jConfigurationProperties resilience4j()
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 isAutowireComponentPropertiesNonNullOnly()
public void setAutowireComponentPropertiesNonNullOnly(boolean autowireComponentPropertiesNonNullOnly)
public boolean isAutowireComponentPropertiesAllowPrivateSetter()
public void setAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
public boolean isHangupInterceptorEnabled()
public void setHangupInterceptorEnabled(boolean hangupInterceptorEnabled)
public String getPackageScanRouteBuilders()
public void setPackageScanRouteBuilders(String packageScanRouteBuilders)
RouteBuilder classes as candidates to be included.
If you are using Spring Boot then its instead recommended to use Spring Boots component scanning and annotate your route builder
classes with `@Component`. In other words only use this for Camel Main in standalone mode.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 withAutowireComponentPropertiesNonNullOnly(boolean autowireComponentPropertiesNonNullOnly)
public MainConfigurationProperties withAutowireComponentPropertiesAllowPrivateSetter(boolean autowireComponentPropertiesAllowPrivateSetter)
public MainConfigurationProperties withHangupInterceptorEnabled(boolean hangupInterceptorEnabled)
public MainConfigurationProperties withDurationHitExitCode(int durationHitExitCode)
public MainConfigurationProperties withPackageScanRouteBuilders(String packageScanRouteBuilders)
RouteBuilder classes as candidates to be included.
If you are using Spring Boot then its instead recommended to use Spring Boots component scanning and annotate your route builder
classes with `@Component`. In other words only use this for Camel Main in standalone mode.Apache Camel