Package io.micronaut.rabbitmq.reactive
Class RabbitPublishState
java.lang.Object
io.micronaut.rabbitmq.reactive.RabbitPublishState
Stores the state of a RabbitMQ message to be published.
This class should be treated as immutable.
- Since:
- 1.1.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorsConstructorDescriptionRabbitPublishState(String exchange, String routingKey, boolean mandatory, com.rabbitmq.client.AMQP.BasicProperties properties, @org.jspecify.annotations.Nullable byte[] body) Default constructor. -
Method Summary
Modifier and TypeMethodDescription@org.jspecify.annotations.Nullable byte[]getBody()booleancom.rabbitmq.client.AMQP.BasicProperties
-
Constructor Details
-
RabbitPublishState
public RabbitPublishState(String exchange, String routingKey, boolean mandatory, com.rabbitmq.client.AMQP.BasicProperties properties, @org.jspecify.annotations.Nullable byte[] body) Default constructor.- Parameters:
exchange- The exchangeroutingKey- The routing keymandatory- The "mandatory" flagproperties- The propertiesbody- The body- Since:
- 4.1.0
-
-
Method Details
-
getExchange
- Returns:
- The exchange to publish the message to
-
getRoutingKey
- Returns:
- The routing key
-
getMandatory
public boolean getMandatory()- Returns:
- The "mandatory" flag
- Since:
- 4.1.0
-
getProperties
public com.rabbitmq.client.AMQP.BasicProperties getProperties()- Returns:
- The properties
-
getBody
public @org.jspecify.annotations.Nullable byte[] getBody()- Returns:
- The message body
-