Package org.eclipse.jetty.util.component
Class Graceful.Shutdown
java.lang.Object
org.eclipse.jetty.util.component.Graceful.Shutdown
- All Implemented Interfaces:
Graceful
- Enclosing interface:
Graceful
A utility Graceful that uses a
FutureCallback
to indicate if shutdown is completed.
By default the FutureCallback
is returned as already completed, but the newShutdownCallback()
method
can be overloaded to return a non-completed callback that will require a Callback.succeeded()
or
Callback.failed(Throwable)
call to be completed.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Graceful
Graceful.Shutdown
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
get()
boolean
protected FutureCallback
shutdown()
-
Field Details
-
_shutdown
-
-
Constructor Details
-
Shutdown
public Shutdown()
-
-
Method Details
-
newShutdownCallback
-
shutdown
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdown
in interfaceGraceful
-
cancel
public void cancel() -
get
-