public interface RPCCallback
Modifier and Type | Method and Description |
---|---|
void |
execute(RPCResponse response,
java.lang.Object rawData,
RPCRequest request)
A
Callback to evaluate when an RPCRequest completes. |
void execute(RPCResponse response, java.lang.Object rawData, RPCRequest request)
Callback
to evaluate when an RPCRequest completes.response
- response a RPCResponse encapsulating the server response to your requestrawData
- rawData The "data" property from the RPCResponse, for convenience. The data can also be obtained via RPCResponse.getDataAsMap()
, RPCResponse.getDataAsString()
, or RPCResponse.getDataAsObject()
, depending
on the type of data that is expected to be returned from the server.request
- the RPCRequest that was sent.RPCRequest
,
RPCResponse