| com.ecyrd.jspwiki.util.Watchable
Watchable | public interface Watchable (Code) | | A watchdog needs something to watch. If you wish to be watched,
implement this interface.
author: jalkanen |
Method Summary | |
public String | getName() Returns a human-readable name of this Watchable. | public boolean | isAlive() Returns true , if this Watchable is still alive and can be
watched; otherwise false . | public void | timeoutExceeded(String state) This is a callback which is called whenever your expected
completion time is exceeded. |
getName | public String getName()(Code) | | Returns a human-readable name of this Watchable. Used in
logging.
The name of the Watchable. |
isAlive | public boolean isAlive()(Code) | | Returns true , if this Watchable is still alive and can be
watched; otherwise false . For example, a stopped Thread
is not very interesting to watch.
the result |
timeoutExceeded | public void timeoutExceeded(String state)(Code) | | This is a callback which is called whenever your expected
completion time is exceeded. The current state of the
stack is available.
Parameters: state - The state in which your Watchable is currently. |
|
|