public class MainLifecycleStrategy extends LifecycleStrategySupport
LifecycleStrategy to trigger shutdown of the Main JVM
when CamelContext is stopped from JMX or its stop method is invoked from Java code.| Constructor and Description |
|---|
MainLifecycleStrategy(AtomicBoolean completed,
CountDownLatch latch) |
| Modifier and Type | Method and Description |
|---|---|
void |
onContextStop(CamelContext context)
Notification on stopping a
CamelContext. |
onComponentAdd, onComponentRemove, onContextStart, onEndpointAdd, onEndpointRemove, onErrorHandlerAdd, onErrorHandlerRemove, onRouteContextCreate, onRoutesAdd, onRoutesRemove, onServiceAdd, onServiceRemove, onThreadPoolAdd, onThreadPoolRemovepublic MainLifecycleStrategy(AtomicBoolean completed, CountDownLatch latch)
public void onContextStop(CamelContext context)
LifecycleStrategyCamelContext.onContextStop in interface LifecycleStrategyonContextStop in class LifecycleStrategySupportcontext - the camel contextApache Camel