Package org.apache.camel.main
Class StartupConditionConfigurationProperties
java.lang.Object
org.apache.camel.main.StartupConditionConfigurationProperties
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.camel.spi.BootstrapCloseable
@Configurer(extended=true)
public class StartupConditionConfigurationProperties
extends Object
implements org.apache.camel.spi.BootstrapCloseable
Configuration for startup conditions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
end()
int
int
boolean
void
setCustomClassNames
(String customClassNames) A list of custom class names (FQN).void
setEnabled
(boolean enabled) To enable using startup conditionsvoid
setEnvironmentVariableExists
(String environmentVariableExists) Wait for an environment variable with the given name to exists before continuingvoid
setFileExists
(String fileExists) Wait for a file with the given name to exists before continuingvoid
setInterval
(int interval) Interval in millis between checking conditions.void
setOnTimeout
(String onTimeout) What action, to do on timeout.void
setTimeout
(int timeout) Total timeout (in millis) for all startup conditions.withCustomClassNames
(String customClassNames) A list of custom class names (FQN).withEnabled
(boolean enabled) To enable using startup conditionswithEnvironmentVariableExists
(String environmentVariableExists) Wait for an environment variable with the given name to exists before continuingwithFileExists
(String fileExists) Wait for a file with the given name to exists before continuingwithInterval
(int interval) Interval in millis between checking startup conditionswithOnTimeout
(String onTimeout) What action, to do on timeout.withTimeout
(int timeout) Total timeout (in millis) for all startup conditions.
-
Constructor Details
-
StartupConditionConfigurationProperties
-
-
Method Details
-
end
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) To enable using startup conditions -
getInterval
public int getInterval() -
setInterval
public void setInterval(int interval) Interval in millis between checking conditions. -
getTimeout
public int getTimeout() -
setTimeout
public void setTimeout(int timeout) Total timeout (in millis) for all startup conditions. -
getOnTimeout
-
setOnTimeout
What action, to do on timeout. fail = do not startup, and throw an exception causing camel to fail stop = do not startup, and stop camel ignore = log a WARN and continue to startup -
getEnvironmentVariableExists
-
setEnvironmentVariableExists
Wait for an environment variable with the given name to exists before continuing -
getFileExists
-
setFileExists
Wait for a file with the given name to exists before continuing -
getCustomClassNames
-
setCustomClassNames
A list of custom class names (FQN). Multiple classes can be separated by comma. -
withEnabled
To enable using startup conditions -
withInterval
Interval in millis between checking startup conditions -
withTimeout
Total timeout (in millis) for all startup conditions. -
withOnTimeout
What action, to do on timeout. fail = do not startup, and throw an exception causing camel to fail stop = do not startup, and stop camel ignore = log a WARN and continue to startup -
withEnvironmentVariableExists
public StartupConditionConfigurationProperties withEnvironmentVariableExists(String environmentVariableExists) Wait for an environment variable with the given name to exists before continuing -
withFileExists
Wait for a file with the given name to exists before continuing -
withCustomClassNames
A list of custom class names (FQN). Multiple classes can be separated by comma.
-