| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--fipaos.util.Monitor
This class provides a generic mechanism for forwarding objects
from one thread to another in order to decouple parts of a system.
A Queue must be passed to a Monitor upon construction, and it monitors
this for objects to forward. When there is an object in the queue
it is passed to the MonitorListener registered with the Monitor
Fields inherited from class java.lang.Thread |
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY |
Constructor Summary | |
Monitor(Queue queue, MonitorListener ml) Constructor - starts threads running | |
Monitor(Queue queue, MonitorListener ml, int priority) Constructor - starts threads running |
Method Summary | |
void | halt() Invoked when this should exit cleanly |
static void | main(String[] args) Test harness for Monitor class |
synchronized void | run() Run method - continuously checks for incomming messages, and passes them on to the MonitorListener implementations associated with this |
Methods inherited from class java.lang.Thread |
currentThread, yield, sleep, sleep, start, stop, stop, interrupt, interrupted, isInterrupted, destroy, isAlive, suspend, resume, setPriority, getPriority, setName, getName, getThreadGroup, activeCount, enumerate, countStackFrames, join, join, join, dumpStack, setDaemon, isDaemon, checkAccess, toString, getContextClassLoader, setContextClassLoader |
Methods inherited from class java.lang.Object |
getClass, hashCode, equals, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Monitor(Queue queue, MonitorListener ml)
public Monitor(Queue queue, MonitorListener ml, int priority)
Method Detail |
public void halt()
public static void main(String[] args)
public synchronized void run()
Association Links |
to Class fipaos.util.MonitorListener
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |