org.openbandy.event
Class EventDispatcherThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.openbandy.event.EventDispatcherThread
All Implemented Interfaces:
java.lang.Runnable

public class EventDispatcherThread
extends java.lang.Thread

This class implements a simple thread that dispatches a given Event to all EventSinks. This way, the thread running the EventService is not blocked during the time it takes the EventSinks to absorb the events.

(c) Copyright Philipp Bolliger 2007, ALL RIGHTS RESERVED.

Version:
1.0
Author:
Philipp Bolliger (philipp@bolliger.name)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
EventDispatcherThread(Event event, java.util.Enumeration eventSinks, java.util.Hashtable eventFilters)
           
 
Method Summary
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventDispatcherThread

public EventDispatcherThread(Event event,
                             java.util.Enumeration eventSinks,
                             java.util.Hashtable eventFilters)
Method Detail

run

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