public abstract class LifecycleWatchdog extends Object implements IStartStop
| Constructor and Description |
|---|
LifecycleWatchdog(INotificationSupport factory) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel() |
INotificationSupport |
getObject() |
boolean |
isStarted()
Answer
true if this object is started |
void |
setLabel(String label) |
void |
start()
Arm the watchdog itself.
|
void |
startAuto()
Arm the watchdog itself.
|
void |
stop()
Disarm the watchdog itself.
|
boolean |
stopRequested(Set visited)
Ask the component if it agrees to end its lifecycle at the very moment.
|
String |
toString() |
public LifecycleWatchdog(INotificationSupport factory)
public String getLabel()
public INotificationSupport getObject()
public boolean isStarted()
IStartStoptrue if this object is startedisStarted in interface IStartStoptrue if this object is started.public void setLabel(String label)
public void start()
start in interface IStartStopIStartStop.start()public void startAuto()
IStartStop.start()public void stop()
stop in interface IStartStopIStartStop.stop()public boolean stopRequested(Set visited)
IStartStopstopRequested in interface IStartStopvisited - The optional set of already visited objects in the stop
request cycle.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.