Interface LifeCycle2

    • Method Detail

      • stop

        boolean stop​(long timeout,
                     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