public interface Shutdownable
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit units)
Await termination of this object, i.e.
|
boolean |
isTerminated() |
void |
shutdown()
Shutdown once any remaining work has completed (however this is defined for the implementation).
|
java.lang.Object |
shutdownNow()
Shutdown immediately, possibly interrupting ongoing work, and cancelling work that is queued.
|
boolean isTerminated()
void shutdown()
java.lang.Object shutdownNow()
boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit units) throws java.lang.InterruptedException
java.lang.InterruptedException
Copyright © 2009- The Apache Software Foundation