|
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectsunlabs.brazil.asterisk.AsteriskHandler.EventItem
public static class AsteriskHandler.EventItem
Keep track of an event listener entry. [I'm not sure what this should do yet.] Each time an event arrives, we traverse the list checking for each regexp match. When a match is found, we send the event to all the listening Q's.
| Constructor Summary | |
|---|---|
AsteriskHandler.EventItem(String queue,
String key,
String exp,
String context,
String serverName)
|
|
| Method Summary | |
|---|---|
boolean |
addQ2Event(String queue,
String key,
String exp,
String context,
String serverName)
Add a new queue to an existing event. |
boolean |
remQEvent(String queue,
String key,
String exp)
Remove an exp/Q pair. |
boolean |
send2Q(Dictionary event)
Send an event to the q's if there is a match. |
int |
size()
|
String |
toString()
|
String |
toString(String delim,
String delim2)
Machine readable version |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AsteriskHandler.EventItem(String queue,
String key,
String exp,
String context,
String serverName)
| Method Detail |
|---|
public boolean addQ2Event(String queue,
String key,
String exp,
String context,
String serverName)
queue - The destination Qexp - The regular expression
public boolean remQEvent(String queue,
String key,
String exp)
queue - The destination Q to remove (or all if null)key - The event key to match on (null for all keys)exp - The event re (or null for all re's)
public int size()
public boolean send2Q(Dictionary event)
public String toString()
toString in class Object
public String toString(String delim,
String delim2)
|
Version Kenai-svn-r24, Generated 08/18/09 Copyright (c) 2001-2009, Sun Microsystems. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||