Package com.azure.core.amqp.models
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 asModifiedwhile others require only aDeliveryState. An outcome with no metadata isDeliveryState.ACCEPTED.
-
-
Constructor Summary
Constructors Constructor Description DeliveryOutcome(DeliveryState deliveryState)Creates an instance of the delivery outcome with its state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeliveryStategetDeliveryState()Gets the delivery state.
-
-
-
Constructor Detail
-
DeliveryOutcome
public DeliveryOutcome(DeliveryState deliveryState)
Creates an instance of the delivery outcome with its state.- Parameters:
deliveryState- The state of the delivery.
-
-
Method Detail
-
getDeliveryState
public DeliveryState getDeliveryState()
Gets the delivery state.- Returns:
- The delivery state.
-
-