public abstract class OnRPCResponseListener extends OnRPCListener
UPDATE_LISTENER_TYPE_ALL_RPCS, UPDATE_LISTENER_TYPE_BASE_RPC, UPDATE_LISTENER_TYPE_MULTIPLE_REQUESTS| Constructor and Description |
|---|
OnRPCResponseListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onReceived(RPCMessage message)
This is the only method that must be extended.
|
abstract void |
onResponse(int correlationId,
RPCResponse response)
This is the only method that must be extended.
|
void |
onStart(int correlationId)
This method will be called once the packet has been entered into the queue of messages to send
|
getListenerType, setListenerTypepublic final void onReceived(RPCMessage message)
OnRPCListeneronReceived in class OnRPCListenermessage - This will be the response message received from the core side. It should be cast into a corresponding RPC Response type. ie, if setting this
for a PutFile request, the message parameter should be cast to a PutFileResponse class.public void onStart(int correlationId)
correlationId - public abstract void onResponse(int correlationId,
RPCResponse response)
correlationId - response - This will be the response message received from the core side. It should be cast into a corresponding RPC Response type. ie, if setting this
for a PutFile request, the message parameter should be cast to a PutFileResponse class.