Events and Queues
Programs can express interest in events of two kinds—inbound messages and timers. When an event occurs, it triggers a program callback method to process the event. Events wait in queues until programs dispatch them. Dispatching an event runs its callback method to process the event.
Event queues organize events awaiting dispatch. Programs dispatch events to run callback methods.
Queue groups add flexibility and fine-grained control to the event queue dispatch mechanism. Programs can create groups of queues and dispatch them according to their queue priorities.
This section presents classes, methods, interfaces and types associated with event interest and event processing.