|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.orderlysoftware.orderlycalls.asterisk.manager.event.ManagerEventDispatcher
public class ManagerEventDispatcher
Used by
ManagerClient
to
dispatch ManagerEvent
objects to registered listeners.
Constructor Summary | |
---|---|
ManagerEventDispatcher(ManagerClient client)
Creates a new ManagerEventDispatcher |
Method Summary | |
---|---|
void |
dispatch(ManagerEvent event)
Sends an event to all registered ManagerEventListener instances. |
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)
ManagerEventListener
instances.
event
- The event to send.public void run()
run
in interface java.lang.Runnable
public 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 |