Uses of Interface
org.apache.qpid.protonj2.engine.Transaction
-
Packages that use Transaction Package Description org.apache.qpid.protonj2.engine org.apache.qpid.protonj2.engine.impl -
-
Uses of Transaction in org.apache.qpid.protonj2.engine
Methods in org.apache.qpid.protonj2.engine that return Transaction Modifier and Type Method Description Transaction<TransactionController>
TransactionController. declare()
Request that the remoteTransactionManager
declare a new transaction and respond with a new transaction Id for that transaction.Transaction<TransactionController>
TransactionController. newTransaction()
Creates a newTransaction
instances that is returned in theTransactionState.IDLE
state which can be populated with application specific attachments or assigned a linked resource prior to calling theMethods in org.apache.qpid.protonj2.engine that return types with arguments of type Transaction Modifier and Type Method Description Collection<Transaction<TransactionController>>
TransactionController. transactions()
Returns a list ofTransaction
objects that are active within thisTransactionController
which have not reached a terminal state meaning they have not been successfully discharged and have not failed in either theDeclare
phase or theDischarge
phase.Methods in org.apache.qpid.protonj2.engine with parameters of type Transaction Modifier and Type Method Description TransactionController
TransactionController. declare(Transaction<TransactionController> transaction)
Request that the remoteTransactionManager
declare a new transaction and respond with a new transaction Id for that transaction.default TransactionManager
TransactionManager. declared(Transaction<TransactionManager> transaction, byte[] txnId)
Respond to a previousDeclare
request from the remoteTransactionController
indicating that the requested transaction has been successfully declared and that deliveries can now be enlisted in that transaction.TransactionManager
TransactionManager. declared(Transaction<TransactionManager> transaction, Binary txnId)
Respond to a previousDeclare
request from the remoteTransactionController
indicating that the requested transaction has been successfully declared and that deliveries can now be enlisted in that transaction.TransactionManager
TransactionManager. declareFailed(Transaction<TransactionManager> transaction, ErrorCondition condition)
Respond to a previousDeclare
request from the remoteTransactionController
indicating that the requested transaction declaration has failed and is not active.TransactionController
TransactionController. discharge(Transaction<TransactionController> transaction, boolean failed)
Request that the remoteTransactionManager
discharge the given transaction and with the specified failure state (true for failed).TransactionManager
TransactionManager. discharged(Transaction<TransactionManager> transaction)
Respond to a previousDischarge
request from the remoteTransactionController
indicating that the discharge completed on the transaction identified by given transaction Id has now been retired.TransactionManager
TransactionManager. dischargeFailed(Transaction<TransactionManager> transaction, ErrorCondition condition)
Respond to a previousDischarge
request from the remoteTransactionController
indicating that the discharge resulted in an error and the transaction must be considered rolled back.Method parameters in org.apache.qpid.protonj2.engine with type arguments of type Transaction Modifier and Type Method Description TransactionController
TransactionController. declaredHandler(EventHandler<Transaction<TransactionController>> declaredEventHandler)
Called when theTransactionManager
end of the link has responded to a previousDeclare
request and the transaction can now be used to enroll deliveries into the active transaction.TransactionController
TransactionController. declareFailureHandler(EventHandler<Transaction<TransactionController>> declareFailureEventHandler)
Called when theTransactionManager
end of the link responds to aTransaction
declaration with anRejected
outcome indicating that the transaction could not be successfully declared.TransactionManager
TransactionManager. declareHandler(EventHandler<Transaction<TransactionManager>> declaredEventHandler)
Called when theTransactionController
end of the link has requested a new transaction be declared using the information provided in the givenDeclare
instance.TransactionController
TransactionController. dischargedHandler(EventHandler<Transaction<TransactionController>> dischargedEventHandler)
Called when theTransactionManager
end of the link has responded to a previousTransactionController.discharge(Transaction, boolean)
request and the transaction has been retired.TransactionController
TransactionController. dischargeFailureHandler(EventHandler<Transaction<TransactionController>> dischargeFailureEventHandler)
Called when theTransactionManager
end of the link has responded to a previousTransactionController.discharge(Transaction, boolean)
request and the transaction discharge failed for some reason.TransactionManager
TransactionManager. dischargeHandler(EventHandler<Transaction<TransactionManager>> dischargeEventHandler)
Called when theTransactionController
end of the link has requested a current transaction be discharged using the information provided in the givenDischarge
instance. -
Uses of Transaction in org.apache.qpid.protonj2.engine.impl
Classes in org.apache.qpid.protonj2.engine.impl that implement Transaction Modifier and Type Class Description class
ProtonTransaction<E extends Endpoint<?>>
BaseTransaction
implementation that provides the basic functionality needed to manage theTransaction
that it represents.Methods in org.apache.qpid.protonj2.engine.impl that return Transaction Modifier and Type Method Description Transaction<TransactionController>
ProtonTransactionController. declare()
Methods in org.apache.qpid.protonj2.engine.impl that return types with arguments of type Transaction Modifier and Type Method Description Collection<Transaction<TransactionController>>
ProtonTransactionController. transactions()
Methods in org.apache.qpid.protonj2.engine.impl with parameters of type Transaction Modifier and Type Method Description TransactionController
ProtonTransactionController. declare(Transaction<TransactionController> transaction)
TransactionManager
ProtonTransactionManager. declared(Transaction<TransactionManager> transaction, Binary txnId)
TransactionManager
ProtonTransactionManager. declareFailed(Transaction<TransactionManager> transaction, ErrorCondition condition)
TransactionController
ProtonTransactionController. discharge(Transaction<TransactionController> transaction, boolean failed)
TransactionManager
ProtonTransactionManager. discharged(Transaction<TransactionManager> transaction)
TransactionManager
ProtonTransactionManager. dischargeFailed(Transaction<TransactionManager> transaction, ErrorCondition condition)
Method parameters in org.apache.qpid.protonj2.engine.impl with type arguments of type Transaction Modifier and Type Method Description TransactionController
ProtonTransactionController. declaredHandler(EventHandler<Transaction<TransactionController>> declaredEventHandler)
TransactionController
ProtonTransactionController. declareFailureHandler(EventHandler<Transaction<TransactionController>> declareFailureEventHandler)
TransactionManager
ProtonTransactionManager. declareHandler(EventHandler<Transaction<TransactionManager>> declaredEventHandler)
TransactionController
ProtonTransactionController. dischargedHandler(EventHandler<Transaction<TransactionController>> dischargedEventHandler)
TransactionController
ProtonTransactionController. dischargeFailureHandler(EventHandler<Transaction<TransactionController>> dischargeFailureEventHandler)
TransactionManager
ProtonTransactionManager. dischargeHandler(EventHandler<Transaction<TransactionManager>> dischargeEventHandler)
-