Package com.azure.core.amqp.models
Class TransactionalDeliveryOutcome
java.lang.Object
com.azure.core.amqp.models.DeliveryOutcome
com.azure.core.amqp.models.TransactionalDeliveryOutcome
A transaction delivery outcome.
- See Also:
-
Constructor Summary
ConstructorDescriptionTransactionalDeliveryOutcome
(AmqpTransaction transaction) Creates an outcome with the given transaction. -
Method Summary
Modifier and TypeMethodDescriptionGets the delivery outcome associated with this transaction.Gets the transaction id associated with this delivery outcome.setOutcome
(DeliveryOutcome outcome) Sets the outcome associated with this delivery state.Methods inherited from class com.azure.core.amqp.models.DeliveryOutcome
getDeliveryState
-
Constructor Details
-
TransactionalDeliveryOutcome
Creates an outcome with the given transaction.- Parameters:
transaction
- The transaction.- Throws:
NullPointerException
- iftransaction
isnull
.
-
-
Method Details
-
getTransactionId
Gets the transaction id associated with this delivery outcome.- Returns:
- The transaction id.
-
getOutcome
Gets the delivery outcome associated with this transaction.- Returns:
- the delivery outcome associated with this transaction,
null
if there is no outcome.
-
setOutcome
Sets the outcome associated with this delivery state.- Parameters:
outcome
- Outcome associated with this transaction delivery.- Returns:
- The updated
TransactionalDeliveryOutcome
object. - Throws:
IllegalArgumentException
- ifoutcome
is an instance ofTransactionalDeliveryOutcome
. Cannot have nested transaction outcomes.
-