Package org.apache.camel
Interface ShutdownableService
- All Superinterfaces:
AutoCloseable
,Service
- All Known Subinterfaces:
ExecutorServiceManager
,ScheduledPollConsumerScheduler
,StatefulService
- All Known Implementing Classes:
ServiceSupport
,Transformer
,Validator
A
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.-
Method Summary
Modifier and TypeMethodDescriptionvoid
shutdown()
Shutdown the service, which means it cannot be started again.
-
Method Details
-
shutdown
void shutdown()Shutdown the service, which means it cannot be started again.- Throws:
RuntimeCamelException
- is thrown if shutdown failed
-