Compartir a través de


AmqpMessageHeader Class

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

public class AmqpMessageHeader

The representation of message header as defined by AMQP protocol.

Method Summary

Modifier and Type Method and Description
Long getDeliveryCount()

Gets the delivery count from amqp message header.

Short getPriority()

Gets the priority on amqpMessage from amqp message header.

Duration getTimeToLive()

Gets timeToLive from amqp message header.

Boolean isDurable()

Gets durable boolean flag from amqp message header.

Boolean isFirstAcquirer()

Gets boolean flag for firstAcquirer from amqp message header.

AmqpMessageHeader setDeliveryCount(Long deliveryCount)

Sets the given deliveryCount value on AmqpMessageHeader object.

AmqpMessageHeader setDurable(Boolean durable)

Sets the given durable value on AmqpMessageHeader object.

AmqpMessageHeader setFirstAcquirer(Boolean firstAcquirer)

Sets the given firstAcquirer value on AmqpMessageHeader object.

AmqpMessageHeader setPriority(Short priority)

Sets the given priority value on AmqpMessageHeader object.

AmqpMessageHeader setTimeToLive(Duration timeToLive)

Sets the given timeToLive value on AmqpMessageHeader object.

Methods inherited from java.lang.Object

Method Details

getDeliveryCount

public Long getDeliveryCount()

Gets the delivery count from amqp message header.

Returns:

the delivery count value.

getPriority

public Short getPriority()

Gets the priority on amqpMessage from amqp message header.

Returns:

the priority value.

getTimeToLive

public Duration getTimeToLive()

Gets timeToLive from amqp message header.

Returns:

the timeToLive value.

isDurable

public Boolean isDurable()

Gets durable boolean flag from amqp message header.

Returns:

the durable flag.

isFirstAcquirer

public Boolean isFirstAcquirer()

Gets boolean flag for firstAcquirer from amqp message header.

Returns:

the firstAcquirer value.

setDeliveryCount

public AmqpMessageHeader setDeliveryCount(Long deliveryCount)

Sets the given deliveryCount value on AmqpMessageHeader object.

Parameters:

deliveryCount - to be set.

Returns:

updated AmqpMessageHeader object.

setDurable

public AmqpMessageHeader setDurable(Boolean durable)

Sets the given durable value on AmqpMessageHeader object.

Parameters:

durable - to set on AmqpMessageHeader.

Returns:

updated AmqpMessageHeader object.

setFirstAcquirer

public AmqpMessageHeader setFirstAcquirer(Boolean firstAcquirer)

Sets the given firstAcquirer value on AmqpMessageHeader object.

Parameters:

firstAcquirer - to set on AmqpMessageHeader.

Returns:

updated AmqpMessageHeader object.

setPriority

public AmqpMessageHeader setPriority(Short priority)

Sets the given priority value on AmqpMessageHeader object.

Parameters:

priority - to set on AmqpMessageHeader.

Returns:

updated AmqpMessageHeader object.

setTimeToLive

public AmqpMessageHeader setTimeToLive(Duration timeToLive)

Sets the given timeToLive value on AmqpMessageHeader object.

Parameters:

timeToLive - to set on AmqpMessageHeader.

Returns:

updated AmqpMessageHeader object.

Applies to