Package org.apache.camel
Interface ShutdownableService
-
- All Superinterfaces:
AutoCloseable,Service
- All Known Subinterfaces:
ExecutorServiceManager,ScheduledPollConsumerScheduler,StatefulService
- All Known Implementing Classes:
ServiceSupport,Transformer,Validator
public interface ShutdownableService extends Service
AServicewhich is capable of being shut down. This is useful for services which need more fine grained control when theCamelContextis 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidshutdown()Shutdown the service, which means it cannot be started again.
-
-
-
Method Detail
-
shutdown
void shutdown()
Shutdown the service, which means it cannot be started again.- Throws:
RuntimeCamelException- is thrown if shutdown failed
-
-