org.openorb.notify
Class NotifyThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.openorb.notify.NotifyThread
All Implemented Interfaces:
java.lang.Runnable, ThreadManagement
Direct Known Subclasses:
EventQueueDispatcher, EventQueueReceiver, Puller, Pusher

public class NotifyThread
extends java.lang.Thread
implements ThreadManagement

Author:
Shawn Boyce

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NotifyThread(java.lang.String id, org.apache.avalon.framework.logger.Logger logger)
          Default constructor
 
Method Summary
 void finishWorkAndStopThread()
          Finish pending work and stop the thread
 void resumeThread()
          Resume the thread
 void startThread()
          Start the thread
 void stopThread()
          Stop the thread
 void suspendThread()
          Suspend the thread
 
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, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotifyThread

public NotifyThread(java.lang.String id,
                    org.apache.avalon.framework.logger.Logger logger)
Default constructor
Method Detail

startThread

public void startThread()
Start the thread
Specified by:
startThread in interface ThreadManagement

resumeThread

public void resumeThread()
Resume the thread
Specified by:
resumeThread in interface ThreadManagement

suspendThread

public void suspendThread()
Suspend the thread
Specified by:
suspendThread in interface ThreadManagement

stopThread

public void stopThread()
Stop the thread
Specified by:
stopThread in interface ThreadManagement

finishWorkAndStopThread

public void finishWorkAndStopThread()
Finish pending work and stop the thread
Specified by:
finishWorkAndStopThread in interface ThreadManagement