Package sunlabs.brazil.asterisk
Class AsteriskHandler.Events
java.lang.Object
sunlabs.brazil.asterisk.AsteriskHandler.Events
- Enclosing class:
AsteriskHandler
Class to manage the set of events. This implementation
maintains a vector of eventItems.
XXX We need to detect when the requester of an event goes away
XXX without unregistering the event, so we can remove it for them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an event to the current set of events.booleanprocessEvents(Dictionary event) Send the event to all the proper Q's.intremoveEvents(String queue, String key, String exp) Remove events.toString()
-
Constructor Details
-
Events
public Events()
-
-
Method Details
-
addEvent
Add an event to the current set of events. If the event expression already exists, add the queue name to the existing event, otherwise create a new event item. -
removeEvents
Remove events. If a parameter is null, it matches everything. Warning: if all three parameters are null, then all events will be removed. -
processEvents
Send the event to all the proper Q's. -
toString
-