|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.orderlysoftware.orderlycalls.examples.ExampleManagerEventListener
public class ExampleManagerEventListener
Example implementation of the ManagerEventListener interface.
Deployed alone, this listener will print all events to the log.
Deployed in conjunction with ExampleProcessor, this listener only responds to events from the ExampleProcessor callback.
Constructor Summary | |
---|---|
ExampleManagerEventListener()
|
Method Summary | |
---|---|
void |
clean()
Reset all non-static member fields, unregister from the ManagerClient, and return to ObjectPool. |
void |
handleManagerEvent(ManagerEvent e)
The example prints out the event, and the source client. |
void |
init(ManagerClient client,
java.lang.String channel,
java.lang.String context,
java.lang.String extension,
java.lang.String priority)
Initialise member fields. |
void |
run()
Waits for 10 seconds, then initiates a callback. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExampleManagerEventListener()
Method Detail |
---|
public void handleManagerEvent(ManagerEvent e)
handleManagerEvent
in interface ManagerEventListener
e
- the ManagerEvent received.public void clean()
public void run()
run
in interface java.lang.Runnable
public void init(ManagerClient client, java.lang.String channel, java.lang.String context, java.lang.String extension, java.lang.String priority)
client
- The ManagerClient with which to work.channel
- The channel to ring.context
- The context to connect it to.extension
- The extension to connect it to.priority
- The extension priority to connect it to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |