Interface StoppableService

All Known Implementing Classes:
ApacheHttpClientFactory, AsynchronousActionService, BackgroundTaskDaemon, DeleteExpiredSessionDaemon, GuiceDaemon, GuiceDailyDaemon, GuiceRecurringDaemon, GuiceScheduledDaemon, HealthCheckWorker, NetworkConfigReloadDaemon, OkHttpClientFactory, ResteasyClientFactoryImpl

public interface StoppableService
Interface for a service that is interested in receiving callback actions when a Guice environment is shutdown
Implementors of this interface must also register with a ShutdownManager to receive shutdown notifications.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called before the actual shutdown to alert the service to the fact that a shutdown has commenced.
    void
    Called to request this service clean up any ongoing work and terminate.
  • Method Details

    • shutdown

      void shutdown()
      Called to request this service clean up any ongoing work and terminate. See ShutdownManager.shutdown() for the shutdown sequence guarantees
    • preShutdown

      default void preShutdown()
      Called before the actual shutdown to alert the service to the fact that a shutdown has commenced. The default implementation does nothing but implementors may wish to perform some action See ShutdownManager.shutdown() for the shutdown sequence guarantees