AmqpAnnotatedMessage Class

  • java.lang.Object
    • com.azure.core.amqp.models.AmqpAnnotatedMessage

public final class AmqpAnnotatedMessage

The representation of message as defined by AMQP protocol.

Constructor Summary

Constructor Description
AmqpAnnotatedMessage(AmqpMessageBody body)

Creates instance of AmqpAnnotatedMessage with given AmqpMessageBody.

Method Summary

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.

Methods inherited from java.lang.Object

Constructor Details

AmqpAnnotatedMessage

public AmqpAnnotatedMessage(AmqpMessageBody body)

Creates instance of AmqpAnnotatedMessage with given AmqpMessageBody.

Parameters:

body - to be set on amqp message.

Method Details

getApplicationProperties

public Map getApplicationProperties()

Gets the Map of application properties.

Returns:

The application properties.

getBody

public AmqpMessageBody getBody()

Gets the AmqpMessageBody of an amqp message.

Returns:

the AmqpMessageBody object.

getDeliveryAnnotations

public Map getDeliveryAnnotations()

Gets the Map representation of delivery annotations defined on an amqp message.

Returns:

the Map representation of delivery annotations.

getFooter

public Map getFooter()

Gets the Map representation of footer defined on an amqp message.

Returns:

the Map representation of footer.

getHeader

public AmqpMessageHeader getHeader()

Gets the AmqpMessageHeader defined on an amqp message.

Returns:

the AmqpMessageHeader object.

getMessageAnnotations

public Map getMessageAnnotations()

Gets the Map representation of message annotations defined on an amqp message.

Returns:

the Map representation of message annotations.

getProperties

public AmqpMessageProperties getProperties()

Gets the AmqpMessageProperties defined on an amqp message.

Returns:

Applies to