org.mortbay.util
public interface LifeCycle
Version: $Id: LifeCycle.java,v 1.5 2004/05/09 20:32:49 gregwilkins Exp $
Method Summary | |
---|---|
boolean | isStarted() |
void | start() Start the LifeCycle. |
void | stop() Stop the LifeCycle.
|
Returns: True if the LifeCycle has been started.
Throws: Exception An arbitrary exception may be thrown.
Throws: 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.