gov.aps.jca.event
Class QueuedEventDispatcher

java.lang.Object
  |
  +--gov.aps.jca.event.AbstractEventDispatcher
        |
        +--gov.aps.jca.event.QueuedEventDispatcher
All Implemented Interfaces:
Configurable, EventDispatcher, java.lang.Runnable

public class QueuedEventDispatcher
extends AbstractEventDispatcher
implements java.lang.Runnable, Configurable

This EventDispatcher uses an internal thread to dispatch events.

Version:
1.0
Author:
Eric Boucher

Constructor Summary
QueuedEventDispatcher()
           
 
Method Summary
 void configure(Configuration conf)
          Pass the Configuration to the Configurable class.
 void dispatch(AccessRightsEvent ev, java.util.List listeners)
           
 void dispatch(ConnectionEvent ev, java.util.List listeners)
           
 void dispatch(ContextExceptionEvent ev, java.util.List listeners)
           
 void dispatch(ContextMessageEvent ev, java.util.List listeners)
           
 void dispatch(GetEvent ev, java.util.List listeners)
           
 void dispatch(MonitorEvent ev, java.util.List listeners)
           
 void dispatch(PutEvent ev, java.util.List listeners)
           
 void dispose()
           
 int getPriority()
           
 void run()
           
 void setPriority(int priority)
           
 
Methods inherited from class gov.aps.jca.event.AbstractEventDispatcher
dispatch, dispatch, dispatch, dispatch, dispatch, dispatch, dispatch
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueuedEventDispatcher

public QueuedEventDispatcher()
Method Detail

run

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

dispose

public void dispose()

configure

public void configure(Configuration conf)
               throws ConfigurationException
Description copied from interface: Configurable
Pass the Configuration to the Configurable class. This method must always be called after the constructor and before any other method.

Specified by:
configure in interface Configurable
Parameters:
conf - the class configurations.
Throws:
ConfigurationException - if an error occurs

getPriority

public int getPriority()

setPriority

public void setPriority(int priority)

dispatch

public void dispatch(ContextMessageEvent ev,
                     java.util.List listeners)
Specified by:
dispatch in interface EventDispatcher

dispatch

public void dispatch(ContextExceptionEvent ev,
                     java.util.List listeners)
Specified by:
dispatch in interface EventDispatcher

dispatch

public void dispatch(ConnectionEvent ev,
                     java.util.List listeners)
Specified by:
dispatch in interface EventDispatcher

dispatch

public void dispatch(AccessRightsEvent ev,
                     java.util.List listeners)
Specified by:
dispatch in interface EventDispatcher

dispatch

public void dispatch(MonitorEvent ev,
                     java.util.List listeners)
Specified by:
dispatch in interface EventDispatcher

dispatch

public void dispatch(GetEvent ev,
                     java.util.List listeners)
Specified by:
dispatch in interface EventDispatcher

dispatch

public void dispatch(PutEvent ev,
                     java.util.List listeners)
Specified by:
dispatch in interface EventDispatcher