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) |
void |
await()
Wait for main to complete.
|
void |
await(long timeout,
TimeUnit unit)
Wait for main to complete.
|
boolean |
isRunAllowed() |
boolean |
shutdown() |
void addShutdownListener(MainShutdownStrategy.ShutdownEventListener listener)
boolean isRunAllowed()
boolean shutdown()
void await()
throws InterruptedException
InterruptedExceptionvoid await(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - the maximum time to waitunit - the time unit of the timeout argumentInterruptedExceptionApache Camel