Uses of Interface
org.apache.qpid.protonj2.engine.Transaction
Packages that use Transaction
-
Uses of Transaction in org.apache.qpid.protonj2.engine
Methods in org.apache.qpid.protonj2.engine that return TransactionModifier and TypeMethodDescriptionTransactionController.declare()Request that the remoteTransactionManagerdeclare a new transaction and respond with a new transaction Id for that transaction.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 TransactionModifier and TypeMethodDescriptionTransactionController.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 TransactionModifier and TypeMethodDescriptionTransactionController.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.TransactionManager.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.TransactionManager.declareFailed(Transaction<TransactionManager> transaction, ErrorCondition condition) Respond to a previousDeclarerequest from the remoteTransactionControllerindicating that the requested transaction declaration has failed and is not active.TransactionController.discharge(Transaction<TransactionController> transaction, boolean failed) Request that the remoteTransactionManagerdischarge the given transaction and with the specified failure state (true for failed).TransactionManager.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.TransactionManager.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 TransactionModifier and TypeMethodDescriptionTransactionController.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.TransactionController.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.TransactionManager.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.TransactionController.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.TransactionController.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.TransactionManager.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 TransactionModifier and TypeClassDescriptionclassProtonTransaction<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 TransactionMethods in org.apache.qpid.protonj2.engine.impl that return types with arguments of type TransactionMethods in org.apache.qpid.protonj2.engine.impl with parameters of type TransactionModifier and TypeMethodDescriptionProtonTransactionController.declare(Transaction<TransactionController> transaction) ProtonTransactionManager.declared(Transaction<TransactionManager> transaction, Binary txnId) ProtonTransactionManager.declareFailed(Transaction<TransactionManager> transaction, ErrorCondition condition) ProtonTransactionController.discharge(Transaction<TransactionController> transaction, boolean failed) ProtonTransactionManager.discharged(Transaction<TransactionManager> transaction) ProtonTransactionManager.dischargeFailed(Transaction<TransactionManager> transaction, ErrorCondition condition) Method parameters in org.apache.qpid.protonj2.engine.impl with type arguments of type TransactionModifier and TypeMethodDescriptionProtonTransactionController.declaredHandler(EventHandler<Transaction<TransactionController>> declaredEventHandler) ProtonTransactionController.declareFailureHandler(EventHandler<Transaction<TransactionController>> declareFailureEventHandler) ProtonTransactionManager.declareHandler(EventHandler<Transaction<TransactionManager>> declaredEventHandler) ProtonTransactionController.dischargedHandler(EventHandler<Transaction<TransactionController>> dischargedEventHandler) ProtonTransactionController.dischargeFailureHandler(EventHandler<Transaction<TransactionController>> dischargeFailureEventHandler) ProtonTransactionManager.dischargeHandler(EventHandler<Transaction<TransactionManager>> dischargeEventHandler)