|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Watchable
A watchdog needs something to watch. If you wish to be watched, implement this interface.
Method Summary | |
---|---|
String |
getName()
Returns a human-readable name of this Watchable. |
boolean |
isAlive()
Returns true , if this Watchable is still alive and can be watched; otherwise false . |
void |
timeoutExceeded(String state)
This is a callback which is called whenever your expected completion time is exceeded. |
Method Detail |
---|
void timeoutExceeded(String state)
state
- The state in which your Watchable is currently.String getName()
boolean isAlive()
true
, if this Watchable is still alive and can be watched; otherwise false
.
For example, a stopped Thread is not very interesting to watch.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |