public class EchoClient extends AdminObject implements ArgRunnable
| Constructor and Description |
|---|
EchoClient()
JSON-driven constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(String ref,
Contextor contextor)
Make this object live inside the context server.
|
void |
echo(ServiceActor from,
String text)
Handler for the 'echo' message, which is a reply to earlier an echo
requests sent to the external service.
|
void |
run(Object obj)
Callback that is invoked when the service connection is established or
fails to be established.
|
contextor, refauth, debug, disconnect, ping, pong@JSONMethod public EchoClient()
public void activate(String ref, Contextor contextor)
activate in interface InternalObjectactivate in class AdminObjectref - Reference string identifying this object in the static
object table.contextor - The contextor for this server.public void run(Object obj)
run in interface ArgRunnableobj - The connection to the echo service, or null if connection
setup failed.@JSONMethod(value="text") public void echo(ServiceActor from, String text) throws MessageHandlerException
MessageHandlerExceptionCopyright © 2017. All rights reserved.