Package org.apache.camel.main
Class MainConfigurationProperties
java.lang.Object
org.apache.camel.main.DefaultConfigurationProperties<MainConfigurationProperties>
org.apache.camel.main.MainConfigurationProperties
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.camel.spi.BootstrapCloseable
@Configurer(bootstrap=true)
public class MainConfigurationProperties
extends DefaultConfigurationProperties<MainConfigurationProperties>
implements org.apache.camel.spi.BootstrapCloseable
Global configuration for Camel Main to configure context name, stream caching and other global configurations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguration(Class<? extends org.apache.camel.CamelConfiguration> configuration) Adds configuration object to the known list of configurations objects.voidaddConfiguration(org.apache.camel.CamelConfiguration configuration) Adds configuration object to the known list of configurations objects.voidaddLambdaRouteBuilder(org.apache.camel.builder.LambdaRouteBuilder routeBuilder) Add an additionalLambdaRouteBuilderobject to the known list of builders.voidaddRoutesBuilder(Class<?>... routeBuilder) Add an additionalRoutesBuilderclass to the known list of builders.voidaddRoutesBuilder(org.apache.camel.RoutesBuilder routeBuilder) Add an additionalRoutesBuilderobject to the known list of builders.voidclose()To configure Circuit Breaker EIP with MicroProfile Fault ToleranceList<org.apache.camel.CamelConfiguration>intintList<org.apache.camel.RoutesBuilder>booleanWhether there has been any MicroProfile Fault Tolerance EIP configuration specifiedbooleanWhether there has been any health check configuration specifiedbooleanWhether there has been any embedded HTTP server configuration specifiedbooleanWhether there has been any Saga LRA configuration specifiedbooleanWhether there has been any Resilience4j EIP configuration specifiedbooleanWhether there has been any rest configuration specifiedbooleanWhether there has been any thread pool configuration specifiedbooleanWhether there has been any vault configuration specifiedhealth()To configure Health CheckTo configure embedded HTTP server (for standalone applications; not Spring Boot or Quarkus)booleanbooleanbooleanbooleanbooleanbooleanlra()To configure Saga LRATo configure Circuit Breaker EIP with Resilience4jrest()To configure Rest DSLvoidsetAutoConfigurationEnabled(boolean autoConfigurationEnabled) Whether auto configuration of components, dataformats, languages is enabled or not.voidsetAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled) Whether auto configuration should include OS environment variables as well.voidsetAutoConfigurationFailFast(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.voidsetAutoConfigurationLogSummary(boolean autoConfigurationLogSummary) Whether auto configuration should log a summary with the configured properties.voidsetAutoConfigurationSystemPropertiesEnabled(boolean autoConfigurationSystemPropertiesEnabled) Whether auto configuration should include JVM system properties as well.voidsetBasePackageScan(String basePackageScan) Package name to use as base (offset) for classpath scanning ofRouteBuilder,TypeConverter,CamelConfigurationclasses, and also classes annotated withConverter, orBindToRegistry.voidsetBasePackageScanEnabled(boolean basePackageScanEnabled) Whether base package scan is enabled.voidsetConfigurationClasses(String configurations) Sets classes names that will be used to configure the camel context as example by providing custom beans throughBindToRegistryannotation.voidsetConfigurations(List<org.apache.camel.CamelConfiguration> configurations) Sets the configuration objects used to configure the camel context.voidsetDurationHitExitCode(int durationHitExitCode) Sets the exit code for the application if duration was hitvoidsetExtraShutdownTimeout(int extraShutdownTimeout) Extra timeout in seconds to graceful shutdown Camel.voidsetRoutesBuilderClasses(String builders) Sets classes names that implementRoutesBuilder.voidsetRoutesBuilders(List<org.apache.camel.RoutesBuilder> routesBuilders) Sets the RoutesBuilder instances.To configure thread poolsvault()To configure access to AWS vaultswithAdditionalLambdaRouteBuilder(org.apache.camel.builder.LambdaRouteBuilder builder) Add an additionalLambdaRouteBuilderobject to the known list of builders.withAdditionalRoutesBuilder(Class... builders) Add an additionalRoutesBuilderclass to the known list of builders.withAdditionalRoutesBuilder(org.apache.camel.RoutesBuilder builder) Add an additionalRoutesBuilderobject to the known list of builders.withAutoConfigurationEnabled(boolean autoConfigurationEnabled) Whether auto configuration of components/dataformats/languages is enabled or not.withAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled) Whether auto configuration should include OS environment variables as well.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.withAutoConfigurationLogSummary(boolean autoConfigurationLogSummary) Whether auto configuration should log a summary with the configured properties.withAutoConfigurationSystemPropertiesEnabled(boolean autoConfigurationSystemPropertiesEnabled) Whether auto configuration should include JVM system properties as well.withBasePackageScan(String basePackageScan) Package name to use as base (offset) for classpath scanning ofRouteBuilder,TypeConverter,CamelConfigurationclasses, and also classes annotated withConverter, orBindToRegistry.withBasePackageScanEnabled(boolean basePackageScanEnabled) Whether base package scan is enabled.withConfigurations(Class<? extends org.apache.camel.CamelConfiguration>... configuration) Adds a configuration class to the known list of configurations classes.withConfigurations(String configurations) Adds classes names that will be used to configure the camel context as example by providing custom beans throughBindToRegistryannotation.withConfigurations(List<org.apache.camel.CamelConfiguration> configurations) Sets the configuration objects used to configure the camel context.withDurationHitExitCode(int durationHitExitCode) Sets the exit code for the application if duration was hitwithExtraShutdownTimeout(int extraShutdownTimeout) Extra timeout in seconds to graceful shutdown Camel.withRoutesBuilderClasses(String builders) Sets classes names that implementRoutesBuilder.withRoutesBuilders(List<org.apache.camel.RoutesBuilder> builders) Sets the RoutesBuilder instances.Methods inherited from class org.apache.camel.main.DefaultConfigurationProperties
addGlobalOption, getBeanIntrospectionLoggingLevel, getConsumerTemplateCacheSize, getDescription, getDumpRoutes, getDurationMaxAction, getDurationMaxIdleSeconds, getDurationMaxMessages, getDurationMaxSeconds, getExchangeFactory, getExchangeFactoryCapacity, getFileConfigurations, getGlobalOptions, getJavaRoutesExcludePattern, getJavaRoutesIncludePattern, getJmxManagementMBeansLevel, getJmxManagementNamePattern, getJmxManagementStatisticsLevel, getLogDebugMaxChars, getMdcLoggingKeysPattern, getName, getProducerTemplateCacheSize, getRouteControllerBackOffDelay, getRouteControllerBackOffMaxAttempts, getRouteControllerBackOffMaxDelay, getRouteControllerBackOffMaxElapsedTime, getRouteControllerBackOffMultiplier, getRouteControllerExcludeRoutes, getRouteControllerIncludeRoutes, getRouteControllerInitialDelay, getRouteControllerThreadPoolSize, getRouteFilterExcludePattern, getRouteFilterIncludePattern, getRoutesExcludePattern, getRoutesIncludePattern, getRoutesReloadDirectory, getRoutesReloadPattern, getShutdownTimeout, getStartupRecorder, getStartupRecorderDir, getStartupRecorderDuration, getStartupRecorderMaxDepth, getStartupRecorderProfile, getStartupSummaryLevel, getStreamCachingAllowClasses, getStreamCachingBufferSize, getStreamCachingDenyClasses, getStreamCachingSpoolCipher, getStreamCachingSpoolDirectory, getStreamCachingSpoolThreshold, getStreamCachingSpoolUsedHeapMemoryLimit, getStreamCachingSpoolUsedHeapMemoryThreshold, getThreadNamePattern, getTracingLoggingFormat, getTracingPattern, getUuidGenerator, isAllowUseOriginalMessage, isAutoStartup, isAutowiredEnabled, isBacklogTracing, isBacklogTracingStandby, isBacklogTracingTemplates, isBeanIntrospectionExtendedStatistics, isBeanPostProcessorEnabled, isCamelEventsTimestampEnabled, isCaseInsensitiveHeaders, isContextReloadEnabled, isDebugging, isDevConsoleEnabled, isEndpointBridgeErrorHandler, isEndpointLazyStartProducer, isEndpointRuntimeStatisticsEnabled, isExchangeFactoryStatisticsEnabled, isInflightRepositoryBrowseEnabled, isJmxEnabled, isLightweight, isLoadHealthChecks, isLoadStatisticsEnabled, isLoadTypeConverters, isLogExhaustedMessageBody, isLogMask, isMessageHistory, isModeline, isRouteControllerSuperviseEnabled, isRouteControllerUnhealthyOnExhausted, isRoutesCollectorEnabled, isRoutesReloadDirectoryRecursive, isRoutesReloadEnabled, isRoutesReloadRemoveAllRoutes, isRoutesReloadRestartDuration, isShutdownLogInflightExchangesOnTimeout, isShutdownNowOnTimeout, isShutdownRoutesInReverseOrder, isShutdownSuppressLoggingOnTimeout, isSourceLocationEnabled, isStartupRecorderRecording, isStreamCachingAnySpoolRules, isStreamCachingEnabled, isStreamCachingRemoveSpoolDirectoryWhenStopping, isStreamCachingSpoolEnabled, isStreamCachingStatisticsEnabled, isTracing, isTracingStandby, isTracingTemplates, isTypeConverterStatisticsEnabled, isUseBreadcrumb, isUseDataType, isUseMdcLogging, setAllowUseOriginalMessage, setAutoStartup, setAutowiredEnabled, setBacklogTracing, setBacklogTracingStandby, setBacklogTracingTemplates, setBeanIntrospectionExtendedStatistics, setBeanIntrospectionLoggingLevel, setBeanPostProcessorEnabled, setCamelEventsTimestampEnabled, setCaseInsensitiveHeaders, setConsumerTemplateCacheSize, setContextReloadEnabled, setDebugging, setDescription, setDevConsoleEnabled, setDumpRoutes, setDurationMaxAction, setDurationMaxIdleSeconds, setDurationMaxMessages, setDurationMaxSeconds, setEndpointBridgeErrorHandler, setEndpointLazyStartProducer, setEndpointRuntimeStatisticsEnabled, setExchangeFactory, setExchangeFactoryCapacity, setExchangeFactoryStatisticsEnabled, setFileConfigurations, setGlobalOptions, setInflightRepositoryBrowseEnabled, setJavaRoutesExcludePattern, setJavaRoutesIncludePattern, setJmxEnabled, setJmxManagementMBeansLevel, setJmxManagementNamePattern, setJmxManagementStatisticsLevel, setLightweight, setLoadHealthChecks, setLoadStatisticsEnabled, setLoadTypeConverters, setLogDebugMaxChars, setLogExhaustedMessageBody, setLogMask, setMdcLoggingKeysPattern, setMessageHistory, setModeline, setName, setProducerTemplateCacheSize, setRouteControllerBackOffDelay, setRouteControllerBackOffMaxAttempts, setRouteControllerBackOffMaxDelay, setRouteControllerBackOffMaxElapsedTime, setRouteControllerBackOffMultiplier, setRouteControllerExcludeRoutes, setRouteControllerIncludeRoutes, setRouteControllerInitialDelay, setRouteControllerSuperviseEnabled, setRouteControllerThreadPoolSize, setRouteControllerUnhealthyOnExhausted, setRouteFilterExcludePattern, setRouteFilterIncludePattern, setRoutesCollectorEnabled, setRoutesExcludePattern, setRoutesIncludePattern, setRoutesReloadDirectory, setRoutesReloadDirectoryRecursive, setRoutesReloadEnabled, setRoutesReloadPattern, setRoutesReloadRemoveAllRoutes, setRoutesReloadRestartDuration, setShutdownLogInflightExchangesOnTimeout, setShutdownNowOnTimeout, setShutdownRoutesInReverseOrder, setShutdownSuppressLoggingOnTimeout, setShutdownTimeout, setSourceLocationEnabled, setStartupRecorder, setStartupRecorderDir, setStartupRecorderDuration, setStartupRecorderMaxDepth, setStartupRecorderProfile, setStartupRecorderRecording, setStartupSummaryLevel, setStreamCachingAllowClasses, setStreamCachingAnySpoolRules, setStreamCachingBufferSize, setStreamCachingDenyClasses, setStreamCachingEnabled, setStreamCachingRemoveSpoolDirectoryWhenStopping, setStreamCachingSpoolCipher, setStreamCachingSpoolDirectory, setStreamCachingSpoolEnabled, setStreamCachingSpoolThreshold, setStreamCachingSpoolUsedHeapMemoryLimit, setStreamCachingSpoolUsedHeapMemoryThreshold, setStreamCachingStatisticsEnabled, setThreadNamePattern, setTracing, setTracingLoggingFormat, setTracingPattern, setTracingStandby, setTracingTemplates, setTypeConverterStatisticsEnabled, setUseBreadcrumb, setUseDataType, setUseMdcLogging, setUuidGenerator, withAllowUseOriginalMessage, withAutoStartup, withBacklogTracing, withBacklogTracingStandby, withBacklogTracingTemplates, withBeanIntrospectionExtendedStatistics, withBeanIntrospectionLoggingLevel, withBeanPostProcessorEnabled, withCamelEventsTimestampEnabled, withCaseInsensitiveHeaders, withConsumerTemplateCacheSize, withContextReloadEnabled, withDebugging, withDescription, withDevConsoleEnabled, withDumpRoutes, withDurationMaxAction, withDurationMaxIdleSeconds, withDurationMaxMessages, withDurationMaxSeconds, withEndpointBridgeErrorHandler, withEndpointLazyStartProducer, withEndpointRuntimeStatisticsEnabled, withExchangeFactory, withExchangeFactoryCapacity, withExchangeFactoryStatisticsEnabled, withFileConfigurations, withGlobalOption, withGlobalOptions, withInflightRepositoryBrowseEnabled, withJavaRoutesExcludePattern, withJavaRoutesIncludePattern, withJmxEnabled, withJmxManagementMBeansLevel, withJmxManagementNamePattern, withJmxManagementStatisticsLevel, withLightweight, withLoadHealthChecks, withLoadStatisticsEnabled, withLoadTypeConverters, withLogDebugMaxChars, withLogExhaustedMessageBody, withLogMask, withMdcLoggingKeysPattern, withMessageHistory, withModeline, withName, withProducerTemplateCacheSize, withRouteControllerBackOffDelay, withRouteControllerBackOffMaxAttempts, withRouteControllerBackOffMaxDelay, withRouteControllerBackOffMaxElapsedTime, withRouteControllerBackOffMultiplier, withRouteControllerExcludeRoutes, withRouteControllerIncludeRoutes, withRouteControllerInitialDelay, withRouteControllerSuperviseEnabled, withRouteControllerThreadPoolSize, withRouteControllerUnhealthyOnExhausted, withRouteFilterExcludePattern, withRouteFilterIncludePattern, withRoutesCollectorEnabled, withRoutesExcludePattern, withRoutesIncludePattern, withRoutesReloadDirectory, withRoutesReloadDirectoryRecursive, withRoutesReloadEnabled, withRoutesReloadPattern, withRoutesReloadRemoveAllRoutes, withRoutesReloadRestartDuration, withShutdownLogInflightExchangesOnTimeout, withShutdownNowOnTimeout, withShutdownRoutesInReverseOrder, withShutdownSuppressLoggingOnTimeout, withShutdownTimeout, withSourceLocationEnabled, withStartupRecorder, withStartupRecorderDir, withStartupRecorderDuration, withStartupRecorderMaxDepth, withStartupRecorderProfile, withStartupRecorderRecording, withStreamCachingAllowClasses, withStreamCachingAnySpoolRules, withStreamCachingBufferSize, withStreamCachingDenyClasses, withStreamCachingEnabled, withStreamCachingRemoveSpoolDirectoryWhenStopping, withStreamCachingSpoolCipher, withStreamCachingSpoolDirectory, withStreamCachingSpoolEnabled, withStreamCachingSpoolThreshold, withStreamCachingSpoolUsedHeapMemoryLimit, withStreamCachingSpoolUsedHeapMemoryThreshold, withStreamCachingStatisticsEnabled, withThreadNamePattern, withTracing, withTracingLoggingFormat, withTracingPattern, withTracingStandby, withTracingTemplates, withTypeConverterStatisticsEnabled, withUseBreadcrumb, withUseDataType, withUseMdcLogging
-
Constructor Details
-
MainConfigurationProperties
public MainConfigurationProperties()
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
health
To configure Health Check -
hasHealthCheckConfiguration
public boolean hasHealthCheckConfiguration()Whether there has been any health check configuration specified -
lra
To configure Saga LRA -
hasLraConfiguration
public boolean hasLraConfiguration()Whether there has been any Saga LRA configuration specified -
httpServer
To configure embedded HTTP server (for standalone applications; not Spring Boot or Quarkus) -
hasHttpServerConfiguration
public boolean hasHttpServerConfiguration()Whether there has been any embedded HTTP server configuration specified -
threadPool
To configure thread pools -
hasThreadPoolConfiguration
public boolean hasThreadPoolConfiguration()Whether there has been any thread pool configuration specified -
resilience4j
To configure Circuit Breaker EIP with Resilience4j -
hasResilience4jConfiguration
public boolean hasResilience4jConfiguration()Whether there has been any Resilience4j EIP configuration specified -
faultTolerance
To configure Circuit Breaker EIP with MicroProfile Fault Tolerance -
hasFaultToleranceConfiguration
public boolean hasFaultToleranceConfiguration()Whether there has been any MicroProfile Fault Tolerance EIP configuration specified -
rest
To configure Rest DSL -
hasRestConfiguration
public boolean hasRestConfiguration()Whether there has been any rest configuration specified -
vault
To configure access to AWS vaults -
hasVaultConfiguration
public boolean hasVaultConfiguration()Whether there has been any vault configuration specified -
isAutoConfigurationEnabled
public boolean isAutoConfigurationEnabled() -
setAutoConfigurationEnabled
public void setAutoConfigurationEnabled(boolean autoConfigurationEnabled) Whether auto configuration of components, dataformats, languages is enabled or not. When enabled the configuration parameters are loaded from the properties component. You can prefix the parameters in the properties file with: - camel.component.name.option1=value1 - camel.component.name.option2=value2 - camel.dataformat.name.option1=value1 - camel.dataformat.name.option2=value2 - camel.language.name.option1=value1 - camel.language.name.option2=value2 Where name is the name of the component, dataformat or language such as seda,direct,jaxb. The auto configuration also works for any options on components that is a complex type (not standard Java type) and there has been an explicit single bean instance registered to the Camel registry via theRegistry.bind(String, Object)method or by using theBindToRegistryannotation style. This option is default enabled. -
isAutoConfigurationEnvironmentVariablesEnabled
public boolean isAutoConfigurationEnvironmentVariablesEnabled() -
setAutoConfigurationEnvironmentVariablesEnabled
public void setAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled) Whether auto configuration should include OS environment variables as well. When enabled this allows to overrule any configuration using an OS environment variable. For example to set a shutdown timeout of 5 seconds: CAMEL_MAIN_SHUTDOWNTIMEOUT=5. This option is default enabled. -
isAutoConfigurationSystemPropertiesEnabled
public boolean isAutoConfigurationSystemPropertiesEnabled() -
setAutoConfigurationSystemPropertiesEnabled
public void setAutoConfigurationSystemPropertiesEnabled(boolean autoConfigurationSystemPropertiesEnabled) Whether auto configuration should include JVM system properties as well. When enabled this allows to overrule any configuration using a JVM system property. For example to set a shutdown timeout of 5 seconds: -D camel.main.shutdown-timeout=5. Note that JVM system properties take precedence over OS environment variables. This option is default enabled. -
isAutoConfigurationFailFast
public boolean isAutoConfigurationFailFast() -
setAutoConfigurationFailFast
public 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. This option is default enabled. -
isAutoConfigurationLogSummary
public boolean isAutoConfigurationLogSummary() -
setAutoConfigurationLogSummary
public void setAutoConfigurationLogSummary(boolean autoConfigurationLogSummary) Whether auto configuration should log a summary with the configured properties. This option is default enabled. -
getBasePackageScan
-
setBasePackageScan
Package name to use as base (offset) for classpath scanning ofRouteBuilder,TypeConverter,CamelConfigurationclasses, and also classes annotated withConverter, orBindToRegistry. If you are using Spring Boot then it is 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. -
isBasePackageScanEnabled
public boolean isBasePackageScanEnabled() -
setBasePackageScanEnabled
public void setBasePackageScanEnabled(boolean basePackageScanEnabled) Whether base package scan is enabled. -
getDurationHitExitCode
public int getDurationHitExitCode() -
setDurationHitExitCode
public void setDurationHitExitCode(int durationHitExitCode) Sets the exit code for the application if duration was hit -
getExtraShutdownTimeout
public int getExtraShutdownTimeout() -
setExtraShutdownTimeout
public void setExtraShutdownTimeout(int extraShutdownTimeout) Extra timeout in seconds to graceful shutdown Camel. When Camel is shutting down then Camel first shutdown all the routes (shutdownTimeout). Then additional services is shutdown (extraShutdownTimeout). -
getConfigurationClasses
-
setConfigurationClasses
Sets classes names that will be used to configure the camel context as example by providing custom beans throughBindToRegistryannotation. -
addConfiguration
public void addConfiguration(org.apache.camel.CamelConfiguration configuration) Adds configuration object to the known list of configurations objects. -
addConfiguration
Adds configuration object to the known list of configurations objects. -
getConfigurations
-
setConfigurations
Sets the configuration objects used to configure the camel context. -
getRoutesBuilderClasses
-
setRoutesBuilderClasses
Sets classes names that implementRoutesBuilder. -
getRoutesBuilders
-
setRoutesBuilders
Sets the RoutesBuilder instances. -
addRoutesBuilder
public void addRoutesBuilder(org.apache.camel.RoutesBuilder routeBuilder) Add an additionalRoutesBuilderobject to the known list of builders. -
addRoutesBuilder
Add an additionalRoutesBuilderclass to the known list of builders. -
addLambdaRouteBuilder
public void addLambdaRouteBuilder(org.apache.camel.builder.LambdaRouteBuilder routeBuilder) Add an additionalLambdaRouteBuilderobject to the known list of builders. -
withAutoConfigurationEnabled
Whether auto configuration of components/dataformats/languages is enabled or not. When enabled the configuration parameters are loaded from the properties component and configured as defaults (similar to spring-boot auto-configuration). You can prefix the parameters in the properties file with: - camel.component.name.option1=value1 - camel.component.name.option2=value2 - camel.dataformat.name.option1=value1 - camel.dataformat.name.option2=value2 - camel.language.name.option1=value1 - camel.language.name.option2=value2 Where name is the name of the component, dataformat or language such as seda,direct,jaxb. The auto configuration also works for any options on components that is a complex type (not standard Java type) and there has been an explicit single bean instance registered to the Camel registry via theRegistry.bind(String, Object)method or by using theBindToRegistryannotation style. This option is default enabled. -
withAutoConfigurationEnvironmentVariablesEnabled
public MainConfigurationProperties withAutoConfigurationEnvironmentVariablesEnabled(boolean autoConfigurationEnvironmentVariablesEnabled) Whether auto configuration should include OS environment variables as well. When enabled this allows to overrule any configuration using an OS environment variable. For example to set a shutdown timeout of 5 seconds: CAMEL_MAIN_SHUTDOWNTIMEOUT=5. This option is default enabled. -
withAutoConfigurationSystemPropertiesEnabled
public MainConfigurationProperties withAutoConfigurationSystemPropertiesEnabled(boolean autoConfigurationSystemPropertiesEnabled) Whether auto configuration should include JVM system properties as well. When enabled this allows to overrule any configuration using a JVM system property. For example to set a shutdown timeout of 5 seconds: -D camel.main.shutdown-timeout=5. Note that JVM system properties take precedence over OS environment variables. This option is default enabled. -
withAutoConfigurationFailFast
Whether auto configuration should fail fast when configuring one ore more properties fails for whatever reason such as a invalid property name, etc. This option is default enabled. -
withAutoConfigurationLogSummary
public MainConfigurationProperties withAutoConfigurationLogSummary(boolean autoConfigurationLogSummary) Whether auto configuration should log a summary with the configured properties. This option is default enabled. -
withDurationHitExitCode
Sets the exit code for the application if duration was hit -
withExtraShutdownTimeout
Extra timeout in seconds to graceful shutdown Camel. When Camel is shutting down then Camel first shutdown all the routes (shutdownTimeout). Then additional services is shutdown (extraShutdownTimeout). -
withBasePackageScan
Package name to use as base (offset) for classpath scanning ofRouteBuilder,TypeConverter,CamelConfigurationclasses, and also classes annotated withConverter, orBindToRegistry. If you are using Spring Boot then it is 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. -
withBasePackageScanEnabled
Whether base package scan is enabled. -
withConfigurations
Adds classes names that will be used to configure the camel context as example by providing custom beans throughBindToRegistryannotation. -
withConfigurations
public MainConfigurationProperties withConfigurations(Class<? extends org.apache.camel.CamelConfiguration>... configuration) Adds a configuration class to the known list of configurations classes. -
withConfigurations
public MainConfigurationProperties withConfigurations(List<org.apache.camel.CamelConfiguration> configurations) Sets the configuration objects used to configure the camel context. -
withRoutesBuilderClasses
Sets classes names that implementRoutesBuilder. -
withRoutesBuilders
public MainConfigurationProperties withRoutesBuilders(List<org.apache.camel.RoutesBuilder> builders) Sets the RoutesBuilder instances. -
withAdditionalRoutesBuilder
public MainConfigurationProperties withAdditionalRoutesBuilder(org.apache.camel.RoutesBuilder builder) Add an additionalRoutesBuilderobject to the known list of builders. -
withAdditionalRoutesBuilder
Add an additionalRoutesBuilderclass to the known list of builders. -
withAdditionalLambdaRouteBuilder
public MainConfigurationProperties withAdditionalLambdaRouteBuilder(org.apache.camel.builder.LambdaRouteBuilder builder) Add an additionalLambdaRouteBuilderobject to the known list of builders.
-