public static class Graceful.Shutdown extends Object implements Graceful
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.Graceful.Shutdown
Constructor and Description |
---|
Shutdown() |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
FutureCallback |
get() |
boolean |
isShutdown() |
Future<Void> |
shutdown() |
public boolean isShutdown()
isShutdown
in interface Graceful
public void cancel()
public FutureCallback get()
Copyright © 2010 - 2020 Adobe. All Rights Reserved