|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventQueue
An event queue. An event queue is a many-to-many 'channel' to publish events and to subscribe listeners.
| Method Summary | |
|---|---|
void |
publish(Event event)
Publishes an event the queue. |
void |
subscribe(EventListener listener)
Subscribes a listener to queue. |
boolean |
unsubscribe(EventListener listener)
Unsubscribes a listener from the queue. |
| Method Detail |
|---|
void publish(Event event)
Note: this method must be called within an activated exection,
i.e., Executions.getCurrent() not null.
java.lang.IllegalStateException - if this method is called
not within an activated execution (such as a working thread).void subscribe(EventListener listener)
Note: this method must be called within an activated exection,
i.e., Executions.getCurrent() not null.
boolean unsubscribe(EventListener listener)
Note: this method must be called within an activated exection,
i.e., Executions.getCurrent() not null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||