public interface LifeCycle
Modifier and Type | Method and Description |
---|---|
boolean |
isStarted() |
void |
start()
Start the LifeCycle.
|
void |
stop()
Stop the LifeCycle.
|
void start() throws Exception
Exception
- An arbitrary exception may be thrown.void stop() throws InterruptedException
InterruptedException
- Stopping a lifecycle is rarely atomic
and may be interrupted by another thread. If this happens
InterruptedException is throw and the component will be in an
indeterminant state and should probably be discarded.boolean isStarted()
Copyright © 2016. All Rights Reserved.