Interface PollingChainTipService
- All Superinterfaces:
AsyncSupport
,ChainTipClient
,ChainTipService
,RxJsonRpcClient
@Deprecated
public interface PollingChainTipService
extends ChainTipService, ChainTipClient, RxJsonRpcClient
Deprecated.
Interface with
pollForDistinctChainTip()
method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.consensusj.jsonrpc.AsyncSupport
AsyncSupport.ThrowingSupplier<T>, AsyncSupport.TransientErrorFilter
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Observable
<Long> Deprecated.Implement this method to provide a polling intervaldefault org.reactivestreams.Publisher
<ChainTip> Deprecated.Using a polling interval provided bygetPollingInterval()
provide a stream of distinctChainTip
s.Methods inherited from interface org.consensusj.jsonrpc.AsyncSupport
getDefaultAsyncExecutor, supplyAsync, supplyAsync
Methods inherited from interface org.consensusj.bitcoin.jsonrpc.ChainTipClient
getChainTips, getChainTipsAsync
Methods inherited from interface org.consensusj.bitcoin.rx.ChainTipService
chainTipPublisher
Methods inherited from interface org.consensusj.rx.jsonrpc.RxJsonRpcClient
call, callAsync, pollOnce, pollOnceAsPublisher, pollOnceAsPublisher, pollOnceAsync
-
Field Details
-
log
Deprecated.
-
-
Method Details
-
getPollingInterval
io.reactivex.rxjava3.core.Observable<Long> getPollingInterval()Deprecated.Implement this method to provide a polling interval- Returns:
- polling interval with desired frequency for polling for new ChainTips.
-
pollForDistinctChainTip
Deprecated.Using a polling interval provided bygetPollingInterval()
provide a stream of distinctChainTip
s.- Returns:
- A stream of distinct
ChainTip
s.
-
PollingChainTipServiceImpl
implementation