Interface RxOmniWalletClient

All Superinterfaces:
OmniBalanceService
All Known Implementing Classes:
OmniwalletAbstractClient, OmniwalletClient, OmniwalletConsensusTool, OmniwalletModernJDKClient

public interface RxOmniWalletClient extends OmniBalanceService
  • Field Details

    • log

      static final org.slf4j.Logger log
  • Method Details

    • currentChainTipMaybe

      default io.reactivex.rxjava3.core.Maybe<ChainTip> currentChainTipMaybe()
      Get the active chain tip if there is one (useful for polling clients)
      Returns:
      The active ChainTip if available (onSuccess) otherwise onComplete (if not available) or onError (if error occurred)
    • pollChainTipOnce

      default io.reactivex.rxjava3.core.Maybe<ChainTip> pollChainTipOnce()
      Poll a method, ignoring IOError. The returned Maybe will:
      1. Emit a value if successful
      2. Empty Complete on IOError
      3. Error out if any other Exception occurs
      Returns:
      A Maybe for the expected result type