Interface LifeCycle2

    • Nested Class Summary

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean stop​(long timeout, java.util.concurrent.TimeUnit timeUnit)
      Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
    • Method Detail

      • stop

        boolean stop​(long timeout,
                     java.util.concurrent.TimeUnit timeUnit)
        Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
        Parameters:
        timeout - the maximum time to wait
        timeUnit - the time unit of the timeout argument
        Returns:
        true if the receiver was stopped cleanly and normally, false otherwise.
        Since:
        2.7