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
Implementors of this interface must also register with a
ShutdownManager
to receive shutdown notifications.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Called before the actual shutdown to alert the service to the fact that a shutdown has commenced.void
shutdown()
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. SeeShutdownManager.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 SeeShutdownManager.shutdown()
for the shutdown sequence guarantees
-