Interface RxJsonChainTipClient

All Superinterfaces:
AsyncSupport, ChainTipService, RxJsonRpcClient

Deprecated.
A JSON-RPC client interface that provides ChainTipService
  • Method Details

    • pollOnNewBlock

      @Deprecated default <RSLT> org.reactivestreams.Publisher<RSLT> pollOnNewBlock(AsyncSupport.ThrowingSupplier<RSLT> method)
      Deprecated.
      Repeatedly once-per-new-block poll a method
      Type Parameters:
      RSLT - The type of the expected result
      Parameters:
      method - A supplier (should be an RPC Method) that can throw Exception.
      Returns:
      An Observable for the expected result type, so we can expect one call to onNext per block.
    • pollOnNewBlockAsync

      default <RSLT> org.reactivestreams.Publisher<RSLT> pollOnNewBlockAsync(Supplier<CompletionStage<RSLT>> supplier)
      Deprecated.
      Repeatedly once-per-new-block poll an async method
      Type Parameters:
      RSLT - The type of the expected result
      Parameters:
      supplier - A supplier (should be an RPC Method) of a CompletionStage
      Returns:
      An Observable for the expected result type, so we can expect one call to onNext per block.