com.raritantechnologies.utils.queue
Class QueueEventDispatcher

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.raritantechnologies.utils.queue.QueueEventDispatcher
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
JobDispatcher, SimpleJobDispatcher

public abstract class QueueEventDispatcher
extends java.lang.Thread

Base class for QueueEventDispatchers. Runs in separate thread.

Subclasses need to provide constructor and implement the dispatch method.


Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
protected  QueueManager manager
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
QueueEventDispatcher(QueueManager manager)
           
 
Method Summary
protected abstract  void dispatch(java.lang.Object theEvent)
           
 void run()
           
 void start()
           
 void stopIt()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

manager

protected QueueManager manager
Constructor Detail

QueueEventDispatcher

public QueueEventDispatcher(QueueManager manager)
Method Detail

start

public void start()

stopIt

public void stopIt()

run

public void run()

dispatch

protected abstract void dispatch(java.lang.Object theEvent)