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 remoteTransactionManagerdeclare a new transaction and respond with a new transaction Id for that transaction.Transaction<TransactionController>TransactionController. newTransaction()Creates a newTransactioninstances that is returned in theTransactionState.IDLEstate 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 java.util.Collection<Transaction<TransactionController>>TransactionController. transactions()Returns a list ofTransactionobjects that are active within thisTransactionControllerwhich have not reached a terminal state meaning they have not been successfully discharged and have not failed in either theDeclarephase or theDischargephase.Methods in org.apache.qpid.protonj2.engine with parameters of type Transaction Modifier and Type Method Description TransactionControllerTransactionController. declare(Transaction<TransactionController> transaction)Request that the remoteTransactionManagerdeclare a new transaction and respond with a new transaction Id for that transaction.default TransactionManagerTransactionManager. declared(Transaction<TransactionManager> transaction, byte[] txnId)Respond to a previousDeclarerequest from the remoteTransactionControllerindicating that the requested transaction has been successfully declared and that deliveries can now be enlisted in that transaction.TransactionManagerTransactionManager. declared(Transaction<TransactionManager> transaction, Binary txnId)Respond to a previousDeclarerequest from the remoteTransactionControllerindicating that the requested transaction has been successfully declared and that deliveries can now be enlisted in that transaction.TransactionManagerTransactionManager. declareFailed(Transaction<TransactionManager> transaction, ErrorCondition condition)Respond to a previousDeclarerequest from the remoteTransactionControllerindicating that the requested transaction declaration has failed and is not active.TransactionControllerTransactionController. discharge(Transaction<TransactionController> transaction, boolean failed)Request that the remoteTransactionManagerdischarge the given transaction and with the specified failure state (true for failed).TransactionManagerTransactionManager. discharged(Transaction<TransactionManager> transaction)Respond to a previousDischargerequest from the remoteTransactionControllerindicating that the discharge completed on the transaction identified by given transaction Id has now been retired.TransactionManagerTransactionManager. dischargeFailed(Transaction<TransactionManager> transaction, ErrorCondition condition)Respond to a previousDischargerequest from the remoteTransactionControllerindicating 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 TransactionControllerTransactionController. declaredHandler(EventHandler<Transaction<TransactionController>> declaredEventHandler)Called when theTransactionManagerend of the link has responded to a previousDeclarerequest and the transaction can now be used to enroll deliveries into the active transaction.TransactionControllerTransactionController. declareFailureHandler(EventHandler<Transaction<TransactionController>> declareFailureEventHandler)Called when theTransactionManagerend of the link responds to aTransactiondeclaration with anRejectedoutcome indicating that the transaction could not be successfully declared.TransactionManagerTransactionManager. declareHandler(EventHandler<Transaction<TransactionManager>> declaredEventHandler)Called when theTransactionControllerend of the link has requested a new transaction be declared using the information provided in the givenDeclareinstance.TransactionControllerTransactionController. dischargedHandler(EventHandler<Transaction<TransactionController>> dischargedEventHandler)Called when theTransactionManagerend of the link has responded to a previousTransactionController.discharge(Transaction, boolean)request and the transaction has been retired.TransactionControllerTransactionController. dischargeFailureHandler(EventHandler<Transaction<TransactionController>> dischargeFailureEventHandler)Called when theTransactionManagerend of the link has responded to a previousTransactionController.discharge(Transaction, boolean)request and the transaction discharge failed for some reason.TransactionManagerTransactionManager. dischargeHandler(EventHandler<Transaction<TransactionManager>> dischargeEventHandler)Called when theTransactionControllerend of the link has requested a current transaction be discharged using the information provided in the givenDischargeinstance. -
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 classProtonTransaction<E extends Endpoint<?>>BaseTransactionimplementation that provides the basic functionality needed to manage theTransactionthat 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 java.util.Collection<Transaction<TransactionController>>ProtonTransactionController. transactions()Methods in org.apache.qpid.protonj2.engine.impl with parameters of type Transaction Modifier and Type Method Description TransactionControllerProtonTransactionController. declare(Transaction<TransactionController> transaction)TransactionManagerProtonTransactionManager. declared(Transaction<TransactionManager> transaction, Binary txnId)TransactionManagerProtonTransactionManager. declareFailed(Transaction<TransactionManager> transaction, ErrorCondition condition)TransactionControllerProtonTransactionController. discharge(Transaction<TransactionController> transaction, boolean failed)TransactionManagerProtonTransactionManager. discharged(Transaction<TransactionManager> transaction)TransactionManagerProtonTransactionManager. 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 TransactionControllerProtonTransactionController. declaredHandler(EventHandler<Transaction<TransactionController>> declaredEventHandler)TransactionControllerProtonTransactionController. declareFailureHandler(EventHandler<Transaction<TransactionController>> declareFailureEventHandler)TransactionManagerProtonTransactionManager. declareHandler(EventHandler<Transaction<TransactionManager>> declaredEventHandler)TransactionControllerProtonTransactionController. dischargedHandler(EventHandler<Transaction<TransactionController>> dischargedEventHandler)TransactionControllerProtonTransactionController. dischargeFailureHandler(EventHandler<Transaction<TransactionController>> dischargeFailureEventHandler)TransactionManagerProtonTransactionManager. dischargeHandler(EventHandler<Transaction<TransactionManager>> dischargeEventHandler)
-