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