cgl.narada.protocol
Class EntityEventDispatcher

java.lang.Object
  extended by java.lang.Thread
      extended by cgl.narada.protocol.EntityEventDispatcher
All Implemented Interfaces:
Runnable

public class EntityEventDispatcher
extends Thread

This is program is written to ensure a considerable degree of concurreny in the delivery of events to brokers, and connected entities. Specifically, we need to ensure that there is priority in the delivery of events to the broker.


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
 
Method Summary
 void addDispatchUnit(DispatchUnit dispatchUnit)
           
static EntityEventDispatcher getInstance()
           
 void initialize(ClientConnectionHandler clientConnectionHandler)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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
 

Method Detail

initialize

public void initialize(ClientConnectionHandler clientConnectionHandler)

getInstance

public static EntityEventDispatcher getInstance()

addDispatchUnit

public void addDispatchUnit(DispatchUnit dispatchUnit)

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


For comments and suggestions please send e-mail to The NaradaBrokering Project