Package ucb.util.mailbox
Class MailboxWatch<Msg extends Serializable>
java.lang.Object
java.lang.Thread
ucb.util.mailbox.MailboxWatch<Msg>
- All Implemented Interfaces:
Runnable
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
ConstructorDescriptionMailboxWatch
(Class<Msg> msgClass, Mailbox<Msg> box, String id, PrintStream str) A new MailboxWatch on BOX, reporting to STR. -
Method Summary
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