public class MainLifecycleStrategy extends org.apache.camel.support.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(org.apache.camel.CamelContext context) |
onComponentAdd, onComponentRemove, onContextStart, onEndpointAdd, onEndpointRemove, onErrorHandlerAdd, onErrorHandlerRemove, onRouteContextCreate, onRoutesAdd, onRoutesRemove, onServiceAdd, onServiceRemove, onThreadPoolAdd, onThreadPoolRemove
public MainLifecycleStrategy(AtomicBoolean completed, CountDownLatch latch)
public void onContextStop(org.apache.camel.CamelContext context)
onContextStop
in interface org.apache.camel.spi.LifecycleStrategy
onContextStop
in class org.apache.camel.support.LifecycleStrategySupport
Apache Camel