public interface JsonRpcClient
| Modifier and Type | Method and Description |
|---|---|
<T> JsonRpcResponse<T> |
send(JsonRpcRequest req,
Class<T> resultClass)
Send synchronous Json RPC request to server.
|
void |
send(JsonRpcRequest req,
Class resultClass,
JsonRpcCallback callback)
Send asynchronous Json RPC request to server.
|
<T> List<JsonRpcResponse<T>> |
send(List<JsonRpcRequest> reqs,
Class<T> resultClass)
Send Json RPC request array to server.
|
void |
send(List<JsonRpcRequest> reqs,
Class resultClass,
JsonRpcMultiCallback callback)
Send asynchronous Json RPC request array to server.
|
<T> JsonRpcResponse<T> send(JsonRpcRequest req, Class<T> resultClass) throws IOException
send(JsonRpcRequest, Class, JsonRpcCallback) instead.T - The type inference for the result classreq - the JsonRpcRequest objectresultClass - the class for the result. Needs to be a POJO, SerializableIOException - if request failsvoid send(JsonRpcRequest req, Class resultClass, JsonRpcCallback callback)
req - the JsonRpcRequest objectresultClass - the class for the result. Needs to be a POJO, Serializablecallback - the asynchronous callback which will return the response once received.@Nullable <T> List<JsonRpcResponse<T>> send(List<JsonRpcRequest> reqs, Class<T> resultClass) throws IOException
T - The type inference for the result classreqs - the list of JsonRpcRequest objectsresultClass - the class for the result. Needs to be a POJO, SerializableIOException - if client request failsvoid send(List<JsonRpcRequest> reqs, Class resultClass, JsonRpcMultiCallback callback)
reqs - the list of JsonRpcRequest objectsresultClass - the class for the result. Needs to be a POJO, Serializablecallback - the asynchronous callback which will return the response once received.Copyright © 2017. All rights reserved.