|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.orderlysoftware.orderlycalls.asterisk.manager.event.ManagerEventDispatcher
public class ManagerEventDispatcher
Used by
ManagerClientto
dispatch ManagerEventobjects to registered listeners.
| Constructor Summary | |
|---|---|
ManagerEventDispatcher(ManagerClient client)
Creates a new ManagerEventDispatcher |
|
| Method Summary | |
|---|---|
void |
dispatch(ManagerEvent event)
Sends an event to all registered ManagerEventListenerinstances. |
static void |
freeDispatcher(ManagerEventDispatcher med)
Returns this dispatcher to the ObjectPool. |
ManagerClient |
getClient()
Gets the ManagerClient
client associated with this ManagerEventDispatcher. |
static ManagerEventDispatcher |
getDispatcher(ManagerClient client)
Gets the dispatcher associated with a particular ManagerClient. |
void |
run()
Launches threads to handle the event. |
void |
setClient(ManagerClient client)
Gets the ManagerClient
associated with this ManagerEventDispatcher. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagerEventDispatcher(ManagerClient client)
client - The ManagerClient to which it is attached.| Method Detail |
|---|
public static ManagerEventDispatcher getDispatcher(ManagerClient client)
client - The ManagerClient containing the dispatcher.
public static void freeDispatcher(ManagerEventDispatcher med)
med - the ManagerEventDispatcher to free.public void dispatch(ManagerEvent event)
ManagerEventListenerinstances.
event - The event to send.public void run()
run in interface java.lang.Runnablepublic ManagerClient getClient()
ManagerClient
client associated with this ManagerEventDispatcher.
public void setClient(ManagerClient client)
ManagerClient
associated with this ManagerEventDispatcher.
client - The client to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||