|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.util.EventQueue
public class EventQueue
A abstract base class that established an event queue and handles event dispatch operations for listeners declared in classes extending this base class.
| Constructor Summary | |
|---|---|
EventQueue(Logger logger)
Deprecated. Use new EventQueue( logger, "Thread name" ) instead. |
|
EventQueue(Logger logger,
String name)
Creation of a new model. |
|
EventQueue(String category)
Deprecated. Use new EventQueue( logger, "Thread name" ) instead. |
|
EventQueue(String category,
String name)
Creation of a new event queue. |
|
| Method Summary | |
|---|---|
void |
enqueueEvent(EventObject event)
Enqueue an event for delivery to registered listeners unless there are no registered listeners. |
void |
enqueueEvent(EventObject event,
boolean waitForCompletion)
Enqueue an event for delivery to registered listeners unless there are no registered listeners. |
void |
terminateDispatchThread()
Terminate the dispatch thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventQueue(String category)
category - the name used to construct a logging channel
public EventQueue(Logger logger)
throws NullPointerException
logger - the assigned logging channel
NullPointerException - if the supplied logging channel is null
public EventQueue(String category,
String name)
category - the name used to construct a logging channelname - the name to assign to the thread
public EventQueue(Logger logger,
String name)
throws NullPointerException
logger - the assigned logging channelname - the name to assign to the thread
NullPointerException - if the supplied logging channel or
thread name is null| Method Detail |
|---|
public void terminateDispatchThread()
public void enqueueEvent(EventObject event)
event - the event object to add to the queue
public void enqueueEvent(EventObject event,
boolean waitForCompletion)
event - the event object to add to the queuewaitForCompletion - if TRUE the implementation will apply
the event to the event source event handler and return on
copmpletion of evetn delivery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||