Interface ShutdownableService

All Superinterfaces:
AutoCloseable, Service
All Known Subinterfaces:
BacklogDebugger, ExecutorServiceManager, ScheduledPollConsumerScheduler, StatefulService
All Known Implementing Classes:
ServiceSupport, Transformer, Validator

public interface ShutdownableService extends Service
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 Type
    Method
    Description
    void
    Shutdown the service, which means it cannot be started again.

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop
  • Method Details

    • shutdown

      void shutdown()
      Shutdown the service, which means it cannot be started again.
      Throws:
      RuntimeCamelException - is thrown if shutdown failed