| |
|
| java.lang.Object com.rift.coad.lib.thread.ThreadStateMonitor
ThreadStateMonitor | public class ThreadStateMonitor (Code) | | This object is responsible for monitoring the state of a thread.
author: Brett Chaldecott |
Method Summary | |
public synchronized boolean | isTerminated() This method returns true if this object is terminated and false if it
is not. | public synchronized void | monitor() This method will get called to monitor the state of the thread. | public synchronized void | terminate(boolean broadCast) This method sets the terminated flag to true and notifies waiting threads
of this fact. |
ThreadStateMonitor | public ThreadStateMonitor()(Code) | | Creates a new instance of ThreadStateMonitor
|
ThreadStateMonitor | public ThreadStateMonitor(long delay)(Code) | | The constructor that sets the delay time for the thread state monitor.
Parameters: delay - The length of time the thread should what before continuingto the next processing iteration. |
isTerminated | public synchronized boolean isTerminated()(Code) | | This method returns true if this object is terminated and false if it
is not.
TRUE if terminated, FALSE if not. |
monitor | public synchronized void monitor()(Code) | | This method will get called to monitor the state of the thread.
|
terminate | public synchronized void terminate(boolean broadCast)(Code) | | This method sets the terminated flag to true and notifies waiting threads
of this fact.
Parameters: broadCast - Set to true if there can be more than one thread blocking. |
|
|
|