public interface LifeCycle
LifeCycle.State.INITIALIZEDstate by default to indicate the class has been loaded. From here, calling the
start()method will change this state to
LifeCycle.State.STARTING. After successfully being started, this state is changed to
LifeCycle.State.STARTED. When the
stop()is called, this goes into the
LifeCycle.State.STOPPINGstate. After successfully being stopped, this goes into the
LifeCycle.State.STOPPEDstate. In most circumstances, implementation classes should store their
volatilefield or inside an
AtomicReferencedependent on synchronization and concurrency requirements.
|Modifier and Type||Interface and Description|
Status of a life cycle like a
Copyright © 1999-2016 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.