Package org.web3j.protocol.core
Class Request<S,T extends Response>
- java.lang.Object
-
- org.web3j.protocol.core.Request<S,T>
-
public class Request<S,T extends Response> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Request()
Request(java.lang.String method, java.util.List<S> params, Web3jService web3jService, java.lang.Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
Request
public Request()
-
Request
public Request(java.lang.String method, java.util.List<S> params, Web3jService web3jService, java.lang.Class<T> type)
-
-
Method Detail
-
getJsonrpc
public java.lang.String getJsonrpc()
-
setJsonrpc
public void setJsonrpc(java.lang.String jsonrpc)
-
getMethod
public java.lang.String getMethod()
-
setMethod
public void setMethod(java.lang.String method)
-
getParams
public java.util.List<S> getParams()
-
setParams
public void setParams(java.util.List<S> params)
-
getId
public long getId()
-
setId
public void setId(long id)
-
getResponseType
public java.lang.Class<T> getResponseType()
-
send
public T send() throws java.io.IOException
- Throws:
java.io.IOException
-
sendAsync
public java.util.concurrent.CompletableFuture<T> sendAsync()
-
flowable
public io.reactivex.Flowable<T> flowable()
-
-