Class DeliveryOutcome

java.lang.Object
com.azure.core.amqp.models.DeliveryOutcome
Direct Known Subclasses:
ModifiedDeliveryOutcome, ReceivedDeliveryOutcome, RejectedDeliveryOutcome, TransactionalDeliveryOutcome

public class DeliveryOutcome extends Object
Outcomes accepted by the AMQP protocol layer. Some outcomes have metadata associated with them, such as Modified while others require only a DeliveryState. An outcome with no metadata is DeliveryState.ACCEPTED.
See Also:
  • Constructor Details

    • DeliveryOutcome

      public DeliveryOutcome(DeliveryState deliveryState)
      Creates an instance of the delivery outcome with its state.
      Parameters:
      deliveryState - The state of the delivery.
  • Method Details

    • getDeliveryState

      public DeliveryState getDeliveryState()
      Gets the delivery state.
      Returns:
      The delivery state.