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
ConstructorDescriptionRabbitPublishState
(String exchange, String routingKey, boolean mandatory, com.rabbitmq.client.AMQP.BasicProperties properties, @io.micronaut.core.annotation.Nullable byte[] body) Default constructor.RabbitPublishState
(String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties properties, @io.micronaut.core.annotation.Nullable byte[] body) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescription@io.micronaut.core.annotation.Nullable byte[]
getBody()
boolean
com.rabbitmq.client.AMQP.BasicProperties
-
Constructor Details
-
RabbitPublishState
public RabbitPublishState(String exchange, String routingKey, boolean mandatory, com.rabbitmq.client.AMQP.BasicProperties properties, @Nullable @io.micronaut.core.annotation.Nullable byte[] body) Default constructor.- Parameters:
exchange
- The exchangeroutingKey
- The routing keymandatory
- The "mandatory" flagproperties
- The propertiesbody
- The body- Since:
- 4.1.0
-
RabbitPublishState
@Deprecated(since="4.1.0", forRemoval=true) public RabbitPublishState(String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties properties, @Nullable @io.micronaut.core.annotation.Nullable byte[] body) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated constructor.- Parameters:
exchange
- The exchangeroutingKey
- The routing keyproperties
- The propertiesbody
- The body
-
-
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
@Nullable public @io.micronaut.core.annotation.Nullable byte[] getBody()- Returns:
- The message body
-
RabbitPublishState(String, String, boolean, AMQP.BasicProperties, byte[])