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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueuedEventDispatcher
public QueuedEventDispatcher()
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