public interface LifeCycle2 extends LifeCycle
This interface should be merged with the super-interface in 3.0.
LifeCycle.State
Modifier and Type | Method and Description |
---|---|
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.
|
boolean stop(long timeout, TimeUnit timeUnit)
timeout
- the maximum time to waittimeUnit
- the time unit of the timeout argument Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.