Class RabbitPublishState

java.lang.Object
io.micronaut.rabbitmq.reactive.RabbitPublishState

public class RabbitPublishState extends Object
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 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 exchange
      routingKey - The routing key
      mandatory - The "mandatory" flag
      properties - The properties
      body - The body
      Since:
      4.1.0
  • Method Details

    • getExchange

      public String getExchange()
      Returns:
      The exchange to publish the message to
    • getRoutingKey

      public String 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