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 Type
    Method
    Description
    boolean
    awaitTermination(long timeout, TimeUnit units)
    Await termination of this object, i.e.
    boolean
     
    void
    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

      boolean awaitTermination(long timeout, TimeUnit units) throws InterruptedException
      Await termination of this object, i.e. the cessation of all current and future work.
      Throws:
      InterruptedException