PublishedMessageBuilder

Publish a ByteArray message to exchange or queue.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Message payload that can be read from ByteArray.

Link copied to clipboard

Name of exchange on which the message is published. Can be empty.

Link copied to clipboard

When matching queue has at least one or more consumers and immediate is set to true, message is delivered to them immediately. When matching queue has zero active consumers and immediate is set to true, message is returned to publisher. When matching queue has zero active consumers and immediate is set to false, message will be delivered to the queue.

Link copied to clipboard

When a published message cannot be routed to any queue and mandatory is true, the message will be returned to publisher. Returned message must be handled with returnListener or returnConsumer. When a published message cannot be routed to any queue and mandatory is false, the message is discarded or republished to an alternate exchange, if any.

Link copied to clipboard

Additional message properties (check amqp documentation).

Link copied to clipboard

Name of routingKey that will be attached to the message. An exchange looks at the routingKey while deciding how the message has to be routed. When exchange parameter is empty routingKey is used as queueName.

Functions

Link copied to clipboard

Builds the PublishedMessage instance.