|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.mgcp.controller.signal.Event
public class Event
Event thrown by endpoint or connection.
Event has one more associated handlers or action. When match(Text)
is called the requested action is selected for execution when this event will
be detected.
| Constructor Summary | |
|---|---|
Event(Text eventName)
Constructs new event name. |
|
| Method Summary | |
|---|---|
void |
add(EventAction action)
Adds handlers for this event. |
void |
fire(Signal s,
Text options)
Executes action associated with this event |
Text |
getName()
Gets the name of this event. |
boolean |
isActive()
Is this event requested or not. |
boolean |
matches(Text eventDescriptor)
Checks that this event objects matches to the specified event descriptor. |
void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Event(Text eventName)
eventName - | Method Detail |
|---|
public Text getName()
public void add(EventAction action)
action - the event handler.public boolean matches(Text eventDescriptor)
event - the event descriptor which includes the event name and
requested action.
public boolean isActive()
public void fire(Signal s,
Text options)
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||