-
Field Summary
Fields
static final org.slf4j.Logger
-
Method Summary
default io.reactivex.rxjava3.core.Maybe<ChainTip>
Get the active chain tip if there is one (useful for polling clients)
default io.reactivex.rxjava3.core.Maybe<ChainTip>
-
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:
- Emit a value if successful
- Empty Complete on IOError
- Error out if any other Exception occurs
- Returns:
- A Maybe for the expected result type