public interface LifeCycle2 extends LifeCycle
LifeCycle.State| Modifier and Type | Method and 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.
|
boolean stop(long timeout,
java.util.concurrent.TimeUnit timeUnit)
timeout - the maximum time to waittimeUnit - the time unit of the timeout argument