Package ucb.util.mailbox
Class MailboxWatch<Msg extends Serializable>
- java.lang.Object
-
- java.lang.Thread
-
- ucb.util.mailbox.MailboxWatch<Msg>
-
- All Implemented Interfaces:
Runnable
public class MailboxWatch<Msg extends Serializable> extends Thread
A MailboxWatch takes a stream of forwarded messages from a Mailbox and prints them to a specified stream. It is a thread and can be stopped by being interrupted.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description MailboxWatch(Class<Msg> msgClass, Mailbox<Msg> box, String id, PrintStream str)
A new MailboxWatch on BOX, reporting to STR.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-