Package io.micronaut.rabbitmq.reactive
Class RabbitPublishState
- java.lang.Object
-
- io.micronaut.rabbitmq.reactive.RabbitPublishState
-
public class RabbitPublishState extends java.lang.ObjectStores the state of a RabbitMQ message to be published. This class should be treated as immutable.- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description RabbitPublishState(java.lang.String exchange, java.lang.String routingKey, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBody()java.lang.StringgetExchange()com.rabbitmq.client.AMQP.BasicPropertiesgetProperties()java.lang.StringgetRoutingKey()
-
-
-
Constructor Detail
-
RabbitPublishState
public RabbitPublishState(java.lang.String exchange, java.lang.String routingKey, com.rabbitmq.client.AMQP.BasicProperties properties, @Nullable byte[] body)Default constructor.- Parameters:
exchange- The exchangeroutingKey- The routing keyproperties- The propertiesbody- The body
-
-
Method Detail
-
getExchange
public java.lang.String getExchange()
- Returns:
- The exchange to publish the message to
-
getRoutingKey
public java.lang.String getRoutingKey()
- Returns:
- The routing key
-
getProperties
public com.rabbitmq.client.AMQP.BasicProperties getProperties()
- Returns:
- The properties
-
getBody
@Nullable public byte[] getBody()
- Returns:
- The message body
-
-