Class AmqpAnnotatedMessage
java.lang.Object
com.azure.core.amqp.models.AmqpAnnotatedMessage
The representation of message as defined by AMQP protocol.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theMapof application properties.getBody()Gets theAmqpMessageBodyof an amqp message.Gets theMaprepresentation of delivery annotations defined on an amqp message.Gets theMaprepresentation of footer defined on an amqp message.Gets theAmqpMessageHeaderdefined on an amqp message.Gets theMaprepresentation of message annotations defined on an amqp message.Gets theAmqpMessagePropertiesdefined on an amqp message.
-
Constructor Details
-
AmqpAnnotatedMessage
Creates instance ofAmqpAnnotatedMessagewith givenAmqpMessageBody.- Parameters:
body- to be set on amqp message.- Throws:
NullPointerException- ifbodyis null.
-
-
Method Details
-
getApplicationProperties
-
getBody
Gets theAmqpMessageBodyof an amqp message.- Returns:
- the
AmqpMessageBodyobject. - See Also:
-
getDeliveryAnnotations
-
getHeader
Gets theAmqpMessageHeaderdefined on an amqp message.- Returns:
- the
AmqpMessageHeaderobject.
-
getMessageAnnotations
-
getProperties
Gets theAmqpMessagePropertiesdefined on an amqp message.- Returns:
- the
AmqpMessagePropertiesobject.
-