AmqpMessageHeader Class
- java.
lang. Object - com.
azure. core. amqp. models. AmqpMessageHeader
- com.
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 |
Duration |
getTimeToLive()
Gets |
Boolean |
isDurable()
Gets durable boolean flag from amqp message header. |
Boolean |
isFirstAcquirer()
Gets boolean flag for |
Amqp |
setDeliveryCount(Long deliveryCount)
Sets the given |
Amqp |
setDurable(Boolean durable)
Sets the given |
Amqp |
setFirstAcquirer(Boolean firstAcquirer)
Sets the given |
Amqp |
setPriority(Short priority)
Sets the given |
Amqp |
setTimeToLive(Duration timeToLive)
Sets the given |
Methods inherited from java.lang.Object
Method Details
getDeliveryCount
public Long getDeliveryCount()
Gets the delivery count from amqp message header.
Returns:
getPriority
public Short getPriority()
Gets the priority on amqpMessage
from amqp message header.
Returns:
priority
value.getTimeToLive
public Duration getTimeToLive()
Gets timeToLive
from amqp message header.
Returns:
timeToLive
value.isDurable
public Boolean isDurable()
Gets durable boolean flag from amqp message header.
Returns:
isFirstAcquirer
public Boolean isFirstAcquirer()
Gets boolean flag for firstAcquirer
from amqp message header.
Returns:
firstAcquirer
value.setDeliveryCount
public AmqpMessageHeader setDeliveryCount(Long deliveryCount)
Sets the given deliveryCount
value on AmqpMessageHeader object.
Parameters:
Returns:
setDurable
public AmqpMessageHeader setDurable(Boolean durable)
Sets the given durable
value on AmqpMessageHeader object.
Parameters:
Returns:
setFirstAcquirer
public AmqpMessageHeader setFirstAcquirer(Boolean firstAcquirer)
Sets the given firstAcquirer
value on AmqpMessageHeader object.
Parameters:
Returns:
setPriority
public AmqpMessageHeader setPriority(Short priority)
Sets the given priority
value on AmqpMessageHeader object.
Parameters:
Returns:
setTimeToLive
public AmqpMessageHeader setTimeToLive(Duration timeToLive)
Sets the given timeToLive
value on AmqpMessageHeader object.
Parameters:
Returns:
Applies to
Azure SDK for Java