Package com.azure.core.amqp.models
Class DeliveryState
- java.lang.Object
-
- com.azure.core.util.ExpandableStringEnum<DeliveryState>
-
- com.azure.core.amqp.models.DeliveryState
-
public final class DeliveryState extends ExpandableStringEnum<DeliveryState>
States for a message delivery.- See Also:
- Delivery state, Transactional work
-
-
Field Summary
Fields Modifier and Type Field Description static DeliveryStateACCEPTEDIndicates successful processing at the receiver.static DeliveryStateMODIFIEDindicates that the message was modified, but not processed.static DeliveryStateRECEIVEDindicates partial message data seen by the receiver as well as the starting point for a resumed transfer.static DeliveryStateREJECTEDIndicates an invalid and unprocessable message.static DeliveryStateRELEASEDIndicates that the message was not (and will not be) processed.static DeliveryStateTRANSACTIONALIndicates that this delivery is part of a transaction.
-
Constructor Summary
Constructors Constructor Description DeliveryState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeliveryStatefromString(String name)Gets the corresponding delivery state from its string representation.static Collection<DeliveryState>values()Gets all the current delivery states.-
Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
-
-
-
Field Detail
-
ACCEPTED
public static final DeliveryState ACCEPTED
Indicates successful processing at the receiver.
-
REJECTED
public static final DeliveryState REJECTED
Indicates an invalid and unprocessable message.
-
RELEASED
public static final DeliveryState RELEASED
Indicates that the message was not (and will not be) processed.
-
MODIFIED
public static final DeliveryState MODIFIED
indicates that the message was modified, but not processed.
-
RECEIVED
public static final DeliveryState RECEIVED
indicates partial message data seen by the receiver as well as the starting point for a resumed transfer.
-
TRANSACTIONAL
public static final DeliveryState TRANSACTIONAL
Indicates that this delivery is part of a transaction.
-
-
Method Detail
-
fromString
public static DeliveryState fromString(String name)
Gets the corresponding delivery state from its string representation.- Parameters:
name- The delivery state to convert.- Returns:
- The corresponding delivery state.
-
values
public static Collection<DeliveryState> values()
Gets all the current delivery states.- Returns:
- Gets the current delivery states.
-
-