public class OkHttpJsonRpcClientProvider extends java.lang.Object implements JsonRpcClientProvider
nextId| Constructor and Description |
|---|
OkHttpJsonRpcClientProvider(java.lang.String baseUrl,
JsonHandler jsonHandler)
Instantiates a new Ok http json rpc client provider.
|
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.concurrent.CompletableFuture<JsonRpc20Response<T>> |
call(JsonRpc20Request request,
java.lang.String url,
java.lang.reflect.Type typeOfT)
Call completable future.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextIdpublic OkHttpJsonRpcClientProvider(java.lang.String baseUrl,
JsonHandler jsonHandler)
baseUrl - the base urljsonHandler - the json handlerpublic <T> java.util.concurrent.CompletableFuture<JsonRpc20Response<T>> call(JsonRpc20Request request, java.lang.String url, java.lang.reflect.Type typeOfT)
call in interface JsonRpcClientProviderT - the type parameterrequest - the requesturl - the urltypeOfT - the type of t