protected class Client.ClientHandler extends java.lang.Object implements MessageHandler, TransportDisconnectHandler
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(Message m)
The MessageHandler implementation
|
void |
invoke(Transport newTransport,
java.lang.Exception e_)
The TransportDisconnectHandler implementation
|
void |
preInvoke(int connectionVersion)
Called before invoke by the transport with a monotonically increasing "connection version" integer
that is incremented upon each reconnect.
|
public void preInvoke(int connectionVersion)
TransportDisconnectHandlerpreInvoke in interface TransportDisconnectHandlerconnectionVersion - The integer that is incremented upon each reconnect.public void invoke(Message m)
invoke in interface MessageHandlerm - the message received from AMPS. As mentioned above, this message object is
reused by successive calls to the handler.public void invoke(Transport newTransport, java.lang.Exception e_)
invoke in interface TransportDisconnectHandlernewTransport - The calling transport that was disconnected.e_ - The cause of the disconnect.