Class DeliveryState

java.lang.Object
com.azure.core.util.ExpandableStringEnum<DeliveryState>
com.azure.core.amqp.models.DeliveryState

public final class DeliveryState extends com.azure.core.util.ExpandableStringEnum<DeliveryState>
States for a message delivery.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final DeliveryState
    Indicates successful processing at the receiver.
    static final DeliveryState
    indicates that the message was modified, but not processed.
    static final DeliveryState
    indicates partial message data seen by the receiver as well as the starting point for a resumed transfer.
    static final DeliveryState
    Indicates an invalid and unprocessable message.
    static final DeliveryState
    Indicates that the message was not (and will not be) processed.
    static final DeliveryState
    Indicates that this delivery is part of a transaction.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Use one of the constants or the ExpandableStringEnum.fromString(String, Class) factory method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the corresponding delivery state from its string representation.
    Gets all the current delivery states.

    Methods inherited from class com.azure.core.util.ExpandableStringEnum

    equals, fromString, hashCode, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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.
  • Constructor Details

    • DeliveryState

      @Deprecated public DeliveryState()
      Deprecated.
      Use one of the constants or the ExpandableStringEnum.fromString(String, Class) factory method.
      Creates a new instance of DeliveryState without a ExpandableStringEnum.toString() value.

      This constructor shouldn't be called as it will produce a DeliveryState which doesn't have a String enum value.

  • Method Details

    • 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.