Package org.consensusj.bitcoin.rx.zeromq
Class RxBitcoinSinglePortZmqService
java.lang.Object
org.consensusj.bitcoin.rx.zeromq.RxBitcoinSinglePortZmqService
- All Implemented Interfaces:
Closeable
,AutoCloseable
,RxBlockchainBinaryService
public class RxBitcoinSinglePortZmqService
extends Object
implements RxBlockchainBinaryService, Closeable
Bitcoin Zmq binary service that connects to a single port.
Use
RxBitcoinZmqBinaryService
if Bitcoin Core is configured to run ZMQ on multiple ports.
See: PR 19752 for sequence topic information-
Constructor Summary
ConstructorDescriptionRxBitcoinSinglePortZmqService
(URI tcpAddress, ThreadFactory threadFactory, BitcoinZmqMessage.Topic... topics) -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher
<byte[]> org.reactivestreams.Publisher
<byte[]> void
close()
org.reactivestreams.Publisher
<byte[]> org.reactivestreams.Publisher
<byte[]>
-
Constructor Details
-
RxBitcoinSinglePortZmqService
public RxBitcoinSinglePortZmqService(URI tcpAddress, ThreadFactory threadFactory, BitcoinZmqMessage.Topic... topics)
-
-
Method Details
-
transactionBinaryPublisher
- Specified by:
transactionBinaryPublisher
in interfaceRxBlockchainBinaryService
-
transactionHashBinaryPublisher
- Specified by:
transactionHashBinaryPublisher
in interfaceRxBlockchainBinaryService
-
blockBinaryPublisher
- Specified by:
blockBinaryPublisher
in interfaceRxBlockchainBinaryService
-
blockHashBinaryPublisher
- Specified by:
blockHashBinaryPublisher
in interfaceRxBlockchainBinaryService
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-