Get the ReadStream that contains the message IDs for confirmed messages. The message IDs in this ReadStream are taken from the message properties, if these message IDs are not set then this ReadStream will contain nulls and using this publisher will be pointless.
Publish a message.
Publish a message.
Get the number of published, but not sent, messages.
Undo the effects of calling {@link RabbitMQPublisher#stop} so that publish may be called again. It is harmless to call restart() when {@link RabbitMQPublisher#stop} has not been called, however if restart() is called whilst {@link RabbitMQPublisher#stop} is being processed the {@link RabbitMQPublisher#stop} will never complete.
Start the rabbitMQ publisher. The RabbitMQClient should have been started before this.
Start the rabbitMQ publisher. The RabbitMQClient should have been started before this.
Stop the rabbitMQ publisher. Calling this is optional, but it gives the opportunity to drain the send queue without losing messages. Future calls to publish will be ignored.
Stop the rabbitMQ publisher. Calling this is optional, but it gives the opportunity to drain the send queue without losing messages. Future calls to publish will be ignored.
Create and return a publisher using the specified client.
Generated using TypeDoc
A reliable publisher that
This is a layer above the RabbitMQClient that provides a lot of standard implementation when guaranteed at least once delivery is required. If confirmations are not required do not use this publisher as it does have overhead.