public abstract class OnRPCRequestListener extends OnRPCListener
UPDATE_LISTENER_TYPE_ALL_RPCS, UPDATE_LISTENER_TYPE_BASE_RPC, UPDATE_LISTENER_TYPE_MULTIPLE_REQUESTS| Constructor and Description |
|---|
OnRPCRequestListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onReceived(RPCMessage message)
This is the only method that must be extended.
|
abstract void |
onRequest(RPCRequest request) |
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 abstract void onRequest(RPCRequest request)
request - - The incoming RPC Request