public class DefaultMainShutdownStrategy extends SimpleMainShutdownStrategy
MainShutdownStrategy that add a virtual machine shutdown hook to properly stop the main
instance.MainShutdownStrategy.ShutdownEventListener| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
DefaultMainShutdownStrategy(BaseMainSupport main) |
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Waiting for Camel Main to complete.
|
boolean |
await(long timeout,
TimeUnit unit)
Waiting for Camel Main to complete (with timeout).
|
void |
disableHangupSupport()
Disable the hangup support.
|
void |
enableHangupSupport()
Hangup support is enabled by default.
|
addShutdownListener, isRunAllowed, restartAwait, shutdownpublic DefaultMainShutdownStrategy(BaseMainSupport main)
public void disableHangupSupport()
public void enableHangupSupport()
public void await()
throws InterruptedException
MainShutdownStrategyawait in interface MainShutdownStrategyawait in class SimpleMainShutdownStrategyInterruptedExceptionpublic boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
MainShutdownStrategyawait in interface MainShutdownStrategyawait in class SimpleMainShutdownStrategytimeout - the maximum time to waitunit - the time unit of the timeout argumentInterruptedExceptionApache Camel