Package org.apache.camel.spi
Interface StartupCondition
public interface StartupCondition
Pluggable condition that must be accepted before Camel can continue starting up.
This can be used to let Camel wait for a specific file to be present, an environment-variable, or some other custom
conditions.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canContinue
(CamelContext camelContext) Checks if the condition is accepteddefault String
Optional logging message to log if condition was not meet.default String
getName()
The name of condition used for logging purposes.default String
Optional logging message to log before waiting for the condition
-
Method Details
-
getName
The name of condition used for logging purposes. -
getWaitMessage
Optional logging message to log before waiting for the condition -
getFailureMessage
Optional logging message to log if condition was not meet. -
canContinue
Checks if the condition is accepted- Parameters:
camelContext
- the Camel context (is not fully initialized)- Returns:
- true to continue, false to stop and fail.
- Throws:
Exception
-