public final class AmqpAnnotatedMessage extends Object
| Constructor and Description |
|---|
AmqpAnnotatedMessage(AmqpAnnotatedMessage message)
Creates instance of
AmqpAnnotatedMessage with given AmqpAnnotatedMessage instance. |
AmqpAnnotatedMessage(AmqpMessageBody body)
Creates instance of
AmqpAnnotatedMessage with given AmqpMessageBody. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getApplicationProperties()
Gets the
Map of application properties. |
AmqpMessageBody |
getBody()
Gets the
AmqpMessageBody of an amqp message. |
Map<String,Object> |
getDeliveryAnnotations()
Gets the
Map representation of delivery annotations defined on an amqp message. |
Map<String,Object> |
getFooter()
Gets the
Map representation of footer defined on an amqp message. |
AmqpMessageHeader |
getHeader()
Gets the
AmqpMessageHeader defined on an amqp message. |
Map<String,Object> |
getMessageAnnotations()
Gets the
Map representation of message annotations defined on an amqp message. |
AmqpMessageProperties |
getProperties()
Gets the
AmqpMessageProperties defined on an amqp message. |
public AmqpAnnotatedMessage(AmqpMessageBody body)
AmqpAnnotatedMessage with given AmqpMessageBody.body - to be set on amqp message.NullPointerException - if body is null.public AmqpAnnotatedMessage(AmqpAnnotatedMessage message)
AmqpAnnotatedMessage with given AmqpAnnotatedMessage instance.message - used to create another instance of AmqpAnnotatedMessage.NullPointerException - if message or body is null.public Map<String,Object> getApplicationProperties()
Map of application properties.public AmqpMessageBody getBody()
AmqpMessageBody of an amqp message.AmqpMessageBody object.public Map<String,Object> getDeliveryAnnotations()
Map representation of delivery annotations defined on an amqp message.Map representation of delivery annotations.public Map<String,Object> getFooter()
Map representation of footer defined on an amqp message.Map representation of footer.public AmqpMessageHeader getHeader()
AmqpMessageHeader defined on an amqp message.AmqpMessageHeader object.public Map<String,Object> getMessageAnnotations()
Map representation of message annotations defined on an amqp message.Map representation of message annotations.public AmqpMessageProperties getProperties()
AmqpMessageProperties defined on an amqp message.AmqpMessageProperties object.Copyright © 2020 Microsoft Corporation. All rights reserved.