public abstract class CommonStartStop extends java.lang.Object implements IStartStop
IStartStop
. This abstract class
ensures that start and stop procedures are executed only once.Constructor and Description |
---|
CommonStartStop() |
Modifier and Type | Method and Description |
---|---|
protected void |
basicStart()
Start the component lifecycle.
|
protected void |
basicStop()
Stop the component lifecycle.
|
boolean |
isStarted()
Answer
true if this object is started |
void |
start()
Start the component lifecycle.
|
void |
stop()
Stop the component lifecycle.
|
boolean |
stopRequested(java.util.Set visited)
Ask the component if it agrees to end its lifecycle at the very moment.
|
protected void basicStart()
protected void basicStop()
public final boolean isStarted()
IStartStop
true
if this object is startedisStarted
in interface IStartStop
true
if this object is started.public final void start()
IStartStop
start
in interface IStartStop
public final void stop()
IStartStop
stop
in interface IStartStop
public boolean stopRequested(java.util.Set visited)
IStartStop
stopRequested
in interface IStartStop
visited
- The optional set of already visited objects in the stop
request cycle.