Package com.azure.core.amqp.models
Class AmqpAnnotatedMessage
java.lang.Object
com.azure.core.amqp.models.AmqpAnnotatedMessage
The representation of message as defined by AMQP protocol.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets theMap
of application properties.getBody()
Gets theAmqpMessageBody
of an amqp message.Gets theMap
representation of delivery annotations defined on an amqp message.Gets theMap
representation of footer defined on an amqp message.Gets theAmqpMessageHeader
defined on an amqp message.Gets theMap
representation of message annotations defined on an amqp message.Gets theAmqpMessageProperties
defined on an amqp message.
-
Constructor Details
-
AmqpAnnotatedMessage
Creates instance ofAmqpAnnotatedMessage
with givenAmqpMessageBody
.- Parameters:
body
- to be set on amqp message.- Throws:
NullPointerException
- ifbody
is null.
-
-
Method Details
-
getApplicationProperties
Gets theMap
of application properties.- Returns:
- The application properties.
-
getBody
Gets theAmqpMessageBody
of an amqp message.- Returns:
- the
AmqpMessageBody
object. - See Also:
-
getDeliveryAnnotations
Gets theMap
representation of delivery annotations defined on an amqp message.- Returns:
- the
Map
representation of delivery annotations.
-
getHeader
Gets theAmqpMessageHeader
defined on an amqp message.- Returns:
- the
AmqpMessageHeader
object.
-
getMessageAnnotations
Gets theMap
representation of message annotations defined on an amqp message.- Returns:
- the
Map
representation of message annotations.
-
getProperties
Gets theAmqpMessageProperties
defined on an amqp message.- Returns:
- the
AmqpMessageProperties
object.
-