public interface MainShutdownStrategy
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MainShutdownStrategy.ShutdownEventListener
Event listener when shutting down.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addShutdownListener(MainShutdownStrategy.ShutdownEventListener listener)
Adds a shutdown listener
|
void |
await()
Waiting for Camel Main to complete.
|
boolean |
await(long timeout,
TimeUnit unit)
Waiting for Camel Main to complete (with timeout).
|
boolean |
isRunAllowed()
Returns true if the application is allowed to run.
|
void |
restartAwait()
This is used for restarting await with timeout.
|
boolean |
shutdown()
Return true if the shutdown has been initiated by the caller.
|
void addShutdownListener(MainShutdownStrategy.ShutdownEventListener listener)
listener - the listenerboolean isRunAllowed()
boolean shutdown()
void await()
throws InterruptedException
InterruptedExceptionboolean await(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - the maximum time to waitunit - the time unit of the timeout argumentInterruptedExceptionvoid restartAwait()
Apache Camel