Package org.apache.cassandra.concurrent
Interface Shutdownable
-
- All Known Subinterfaces:
Interruptible
- All Known Implementing Classes:
AuthCache,AuthorizationProxy.JmxPermissionsCache,InfiniteLoopExecutor,MemtableCleanerThread,NetworkPermissionsCache,PasswordAuthenticator.CredentialsCache,PermissionsCache,RolesCache
public interface Shutdownable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanawaitTermination(long timeout, java.util.concurrent.TimeUnit units)Await termination of this object, i.e.booleanisTerminated()voidshutdown()Shutdown once any remaining work has completed (however this is defined for the implementation).java.lang.ObjectshutdownNow()Shutdown immediately, possibly interrupting ongoing work, and cancelling work that is queued.
-
-
-
Method Detail
-
isTerminated
boolean isTerminated()
-
shutdown
void shutdown()
Shutdown once any remaining work has completed (however this is defined for the implementation).
-
shutdownNow
java.lang.Object shutdownNow()
Shutdown immediately, possibly interrupting ongoing work, and cancelling work that is queued.
-
awaitTermination
boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit units) throws java.lang.InterruptedExceptionAwait termination of this object, i.e. the cessation of all current and future work.- Throws:
java.lang.InterruptedException
-
-