Class AmqpMessage

java.lang.Object
fr.ght1pc9kc.testy.beat.messaging.AmqpMessage

public final class AmqpMessage extends Object
Class wrapping the body and the headers of an AMQP message.
  • Field Details

    • body

      public final byte[] body
    • headers

      public final Map<String,Object> headers
  • Constructor Details

    • AmqpMessage

      public AmqpMessage()
  • Method Details

    • of

      public static AmqpMessage of(byte[] body)
      Create a simple response
      Parameters:
      body - Body of the response.
      Returns:
      AmqpMessage.