Class RemoteCall<T>

java.lang.Object
org.web3j.protocol.core.RemoteCall<T>
Type Parameters:
T - Our return type.
Direct Known Subclasses:
RemoteFunctionCall

public class RemoteCall<T> extends Object
A common type for wrapping remote requests.
  • Constructor Details

    • RemoteCall

      public RemoteCall(Callable<T> callable)
  • Method Details

    • send

      public T send() throws Exception
      Perform request synchronously.
      Returns:
      result of enclosed function
      Throws:
      Exception - if the function throws an exception
    • sendAsync

      public CompletableFuture<T> sendAsync()
      Perform request asynchronously with a future.
      Returns:
      a future containing our function
    • flowable

      public io.reactivex.Flowable<T> flowable()
      Provide an flowable to emit result from our function.
      Returns:
      an flowable