@Immutable public class RabbitConsumerState extends Object
Constructor and Description |
---|
RabbitConsumerState(com.rabbitmq.client.Envelope envelope,
com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] body,
com.rabbitmq.client.Channel channel)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBody() |
com.rabbitmq.client.Channel |
getChannel()
This channel is being used exclusively by the consumer that
consumed this message.
|
com.rabbitmq.client.Envelope |
getEnvelope() |
com.rabbitmq.client.AMQP.BasicProperties |
getProperties() |
public RabbitConsumerState(com.rabbitmq.client.Envelope envelope, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body, com.rabbitmq.client.Channel channel)
envelope
- The envelopeproperties
- The propertiesbody
- The bodychannel
- The channel that consumed the messagepublic byte[] getBody()
@Nonnull public com.rabbitmq.client.AMQP.BasicProperties getProperties()
@Nonnull public com.rabbitmq.client.Envelope getEnvelope()
public com.rabbitmq.client.Channel getChannel()