Class TxOutSetService
java.lang.Object
org.consensusj.bitcoin.rx.jsonrpc.service.TxOutSetService
- All Implemented Interfaces:
Closeable
,AutoCloseable
Service to return a stream of TxOutSetInfos for a given blockchain/client.
Updates are triggered on new blocks (via
ChainTipService
a cache
is used to prevent fetches of TxOutSetInfos already fetched (e.g. on blockchain re-org) and
MAX_OUTSTANDING_CALLS
is used to prevent overloading the server (e.g. during blockchain sync)-
Constructor Summary
ConstructorDescriptionTxOutSetService
(RxBitcoinClient client, ChainTipPublisher chainTipPublisher) -
Method Summary
-
Constructor Details
-
TxOutSetService
- Parameters:
client
- Client for requestingTxOutSetInfo
objects.chainTipPublisher
- Publisher telling us when new blocks are available.
-
-
Method Details
-
getTxOutSetPublisher
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-