Class RxPeerGroup
java.lang.Object
org.consensusj.bitcoin.rx.peergroup.RxPeerGroup
- All Implemented Interfaces:
Closeable
,AutoCloseable
,RxBlockchainService
Provide Reactive Publishers for
PeerGroup
information.
This implementation works with a PeerGroup w/o a Blockchain/BlockStore.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher
<org.bitcoinj.base.Sha256Hash> TBD: CanBlocksDownloadedEventListener
be used here?org.reactivestreams.Publisher
<Integer> org.reactivestreams.Publisher
<org.bitcoinj.core.Block> TBD: CanBlocksDownloadedEventListener
be used here?org.reactivestreams.Publisher
<ChainTip> void
close()
void
start()
TODO: Fix this.org.reactivestreams.Publisher
<org.bitcoinj.base.Sha256Hash> org.reactivestreams.Publisher
<org.bitcoinj.core.Transaction>
-
Constructor Details
-
RxPeerGroup
-
-
Method Details
-
start
TODO: Fix this. RxPeerGroup implements BlockchainService which does not have astart()
method. But if we move (@code start()} to the constructor, it breaks PeerWatcher. -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
transactionPublisher
- Specified by:
transactionPublisher
in interfaceRxBlockchainService
-
transactionHashPublisher
- Specified by:
transactionHashPublisher
in interfaceRxBlockchainService
-
blockPublisher
TBD: CanBlocksDownloadedEventListener
be used here?- Specified by:
blockPublisher
in interfaceRxBlockchainService
-
blockHashPublisher
TBD: CanBlocksDownloadedEventListener
be used here?- Specified by:
blockHashPublisher
in interfaceRxBlockchainService
-
blockHeightPublisher
- Specified by:
blockHeightPublisher
in interfaceRxBlockchainService
-
chainTipPublisher
- Specified by:
chainTipPublisher
in interfaceRxBlockchainService
-