public interface ShutdownableService extends Service
Service
which is capable of being shut down.
This is useful for services which need more fine grained control when the CamelContext
is shutting down. This
allows customization of behavior when stopping or shutting down.
For example to shutdown thread pools during shutdown and not at CamelContext termination.Modifier and Type | Method and Description |
---|---|
void |
shutdown()
Shutdown the service, which means it cannot be started again.
|
void shutdown()
RuntimeCamelException
- is thrown if shutdown failedApache Camel