public class Request<S,T extends Response>
extends java.lang.Object
Constructor and Description |
---|
Request() |
Request(java.lang.String method,
java.util.List<S> params,
Web3jService web3jService,
java.lang.Class<T> type) |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Flowable<T> |
flowable() |
long |
getId() |
java.lang.String |
getJsonrpc() |
java.lang.String |
getMethod() |
java.util.List<S> |
getParams() |
java.lang.Class<T> |
getResponseType() |
T |
send() |
java.util.concurrent.CompletableFuture<T> |
sendAsync() |
void |
setId(long id) |
void |
setJsonrpc(java.lang.String jsonrpc) |
void |
setMethod(java.lang.String method) |
void |
setParams(java.util.List<S> params) |
public Request()
public Request(java.lang.String method, java.util.List<S> params, Web3jService web3jService, java.lang.Class<T> type)
public java.lang.String getJsonrpc()
public void setJsonrpc(java.lang.String jsonrpc)
public java.lang.String getMethod()
public void setMethod(java.lang.String method)
public java.util.List<S> getParams()
public void setParams(java.util.List<S> params)
public long getId()
public void setId(long id)
public java.lang.Class<T> getResponseType()
public T send() throws java.io.IOException
java.io.IOException
public java.util.concurrent.CompletableFuture<T> sendAsync()
public io.reactivex.Flowable<T> flowable()