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, onThreadPoolRemove
public MainLifecycleStrategy(AtomicBoolean completed, CountDownLatch latch)
public void onContextStop(CamelContext context)
LifecycleStrategy
CamelContext
.onContextStop
in interface LifecycleStrategy
onContextStop
in class LifecycleStrategySupport
context
- the camel contextApache Camel