public interface Watchable
| Modifier and Type | Method and Description |
|---|---|
java.lang.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(java.lang.String state)
This is a callback which is called whenever your expected completion time is exceeded.
|
void timeoutExceeded(java.lang.String state)
state - The state in which your Watchable is currently.java.lang.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 (c) 2001-2022 The Apache Software Foundation. All rights reserved.