Package org.apache.qpid.protonj2.client
Interface Transactional
- All Superinterfaces:
DeliveryState
- All Known Implementing Classes:
ClientDeliveryState.ClientTransactional
Transactional
DeliveryState marker interface used when a Delivery
or Tracker is enlisted in a transaction. The transactional delivery state
carries an outcome that indicates the eventual outcome applied to the associated
AMQP delivery once the transaction is successfully discharged.
The API of the transactional delivery-state outcomes will return true
to indicate the type of outcome Accepted, Rejected, Released
or Modified. To inspect the actual assigned outcomes the getOutcome()
method should be called and the resulting DeliveryState instance inspected.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.qpid.protonj2.client.DeliveryState
DeliveryState.Type -
Method Summary
Methods inherited from interface org.apache.qpid.protonj2.client.DeliveryState
isAccepted, isModified, isRejected, isReleased
-
Method Details
-
getOutcome
DeliveryState getOutcome()- Returns:
- the outcome that will be applied to the delivery once the transaction is successfully discharged
-
getType
- Specified by:
getTypein interfaceDeliveryState- Returns:
- the type that the given
DeliveryStaterepresents.
-
isTransactional
default boolean isTransactional()- Specified by:
isTransactionalin interfaceDeliveryState- Returns:
- true if the
DeliveryStaterepresents an Transactional outcome.
-