public class EventQueueDefinition extends Object
This class is thread-safe and should block minimally when accessed concurrently.
| Modifier and Type | Class and Description |
|---|---|
class |
EventQueueDefinition.ReverseNaturalComparator<T extends Comparable> |
| Constructor and Description |
|---|
EventQueueDefinition(Class<? extends Event> eventType) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(EventQueueEntry entry)
Registers the given entry for events.
|
void |
push(Event event)
Notifies entries in the event queue of the given event.
|
void |
push(Event event,
int priority)
Notifies entries in the event queue with the given minimum priority.
|
void |
remove(EventQueueEntry entry)
Removes the given queue entry from the notification list.
|
void |
removeAll(Object object)
Removes all handler methods in the given object from notifications by
this queue.
|
public void add(EventQueueEntry entry)
remove(EventQueueEntry), removeAll(Object), and
push(Event).entry - the entry to add to the notification queuepublic void remove(EventQueueEntry entry)
entry - the entry to removepublic void removeAll(Object object)
object - the object to deregisterpublic void push(Event event)
vetoable property is set
to true (the default), which will cause remaining, lower priority
events to be skipped. Ideally listeners that may veto events should have
an above-normal priority to ensure consistent behavior.event - the event to dispatchpublic void push(Event event, int priority)
event - The event to dispatchpriority - The minimum prioritypush(Event)Copyright © 2014. All rights reserved.