ucb.util.mailbox
Class MailboxWatch

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ucb.util.mailbox.MailboxWatch
All Implemented Interfaces:
java.lang.Runnable

public class MailboxWatch
extends java.lang.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.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MailboxWatch(Mailbox box, java.lang.String id, java.io.PrintStream str)
          A new MailboxWatch on BOX, reporting to STR.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailboxWatch

public MailboxWatch(Mailbox box,
                    java.lang.String id,
                    java.io.PrintStream str)
A new MailboxWatch on BOX, reporting to STR. ID is a string used to label each reported message.
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread