public interface Graceful
Jetty components that wish to be part of a Graceful shutdown implement this interface so that
the shutdown()
method will be called to initiate a shutdown. Shutdown operations
can fall into the following categories:
The Future
returned by the the shutdown call will be completed to indicate the shutdown operation is completed.
Some shutdown operations may be instantaneous and always return a completed future.
Graceful shutdown is typically orchestrated by the doStop methods of Server or ContextHandler (for a full or partial shutdown respectively).
Modifier and Type | Interface and Description |
---|---|
static class |
Graceful.Shutdown
A utility Graceful that uses a
FutureCallback to indicate if shutdown is completed. |
Modifier and Type | Method and Description |
---|---|
boolean |
isShutdown() |
Future<Void> |
shutdown() |
Copyright © 2010 - 2020 Adobe. All Rights Reserved