Interface Shutdownable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
    • 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.InterruptedException
        Await termination of this object, i.e. the cessation of all current and future work.
        Throws:
        java.lang.InterruptedException