
public interface Watchable
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.