Class MessageProperties

java.lang.Object
com.rabbitmq.client.MessageProperties

public class MessageProperties extends Object
Constant holder class with useful static instances of AMQContentHeader. These are intended for use with Channel.basicPublish(java.lang.String, java.lang.String, com.rabbitmq.client.AMQP.BasicProperties, byte[]) and other Channel methods.
  • Field Details

    • MINIMAL_BASIC

      public static final AMQP.BasicProperties MINIMAL_BASIC
      Empty basic properties, with no fields set
    • MINIMAL_PERSISTENT_BASIC

      public static final AMQP.BasicProperties MINIMAL_PERSISTENT_BASIC
      Empty basic properties, with only deliveryMode set to 2 (persistent)
    • BASIC

      public static final AMQP.BasicProperties BASIC
      Content-type "application/octet-stream", deliveryMode 1 (nonpersistent), priority zero
    • PERSISTENT_BASIC

      public static final AMQP.BasicProperties PERSISTENT_BASIC
      Content-type "application/octet-stream", deliveryMode 2 (persistent), priority zero
    • TEXT_PLAIN

      public static final AMQP.BasicProperties TEXT_PLAIN
      Content-type "text/plain", deliveryMode 1 (nonpersistent), priority zero
    • PERSISTENT_TEXT_PLAIN

      public static final AMQP.BasicProperties PERSISTENT_TEXT_PLAIN
      Content-type "text/plain", deliveryMode 2 (persistent), priority zero
  • Constructor Details

    • MessageProperties

      public MessageProperties()