org.globalse.arena.frag.events
Class EventChannel

java.lang.Object
  |
  +--org.globalse.arena.frag.events.EventDispatcher
        |
        +--org.globalse.arena.frag.events.EventChannel

public class EventChannel
extends EventDispatcher

An EventChannel basically is an EventDispatcher that queues incoming events and relays them to its listeners as soon as possible. $id$


Constructor Summary
EventChannel()
          Constructor, which initializes the EventChannel and starts the queue processing thread
 
Method Summary
 void executeDispatchLoop()
          The processing loop for the internal event queue.
 void processEvent(Event event)
          Here incoming events are added to the internal queue.
 void shutdown()
          Stops the queue processing thread.
 
Methods inherited from class org.globalse.arena.frag.events.EventDispatcher
eventDistributor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventChannel

public EventChannel()
Constructor, which initializes the EventChannel and starts the queue processing thread
Method Detail

executeDispatchLoop

public void executeDispatchLoop()
The processing loop for the internal event queue. Events are removed from the queue and passed to this object's EventDistributor.

processEvent

public void processEvent(Event event)
Here incoming events are added to the internal queue.
Parameters:
event - Event event which is processed.
Overrides:
processEvent in class EventDispatcher

shutdown

public void shutdown()
Stops the queue processing thread.



This page is hosted by the Chair for Applied Software Engineering of the Technische Universität München.
Imprint (Impressum)