public interface CamelContextLifecycle extends AutoCloseable
CamelContext
.Modifier and Type | Method and Description |
---|---|
void |
build()
Builds the CamelContext.
|
void |
close()
Closes (Shutdown) the CamelContext, which means it cannot be started again.
|
ServiceStatus |
getStatus()
Get the status of this CamelContext
|
void |
init()
Initializes the CamelContext.
|
boolean |
isRunAllowed()
Helper methods so the CamelContext knows if it should keep running.
|
boolean |
isStarted()
Whether the CamelContext is started
|
boolean |
isStarting()
Whether the CamelContext is starting
|
boolean |
isStopped()
Whether the CamelContext is stopped
|
boolean |
isStopping()
Whether the CamelContext is stopping
|
boolean |
isSuspended()
Whether the CamelContext is suspended
|
boolean |
isSuspending()
Whether the CamelContext is suspending
|
void |
resume()
Resumes the CamelContext.
|
void |
shutdown()
Shutdown the CamelContext, which means it cannot be started again.
|
void |
start()
Starts the
CamelContext (important: the start method is not blocked, see more details
here). |
void |
stop()
Stop and shutdown the
CamelContext (will stop all routes/components/endpoints etc and clear internal
state/cache). |
void |
suspend()
Suspends the CamelContext.
|
void start()
CamelContext
(important: the start method is not blocked, see more details
here).
See more details at the class-level javadoc at CamelContext
.RuntimeCamelException
- is thrown if starting failedvoid stop()
CamelContext
(will stop all routes/components/endpoints etc and clear internal
state/cache).
See more details at the class-level javadoc at CamelContext
.RuntimeCamelException
- is thrown if stopping failedboolean isStarted()
boolean isStarting()
boolean isStopping()
boolean isStopped()
boolean isSuspending()
boolean isSuspended()
boolean isRunAllowed()
void build()
void init()
void suspend()
void resume()
void shutdown()
CamelContext
.void close() throws Exception
close
in interface AutoCloseable
Exception
- is thrown if shutdown failedServiceStatus getStatus()
Apache Camel