public interface TransactionIntegration
Modifier and Type | Interface and Description |
---|---|
static interface |
TransactionIntegration.ResourceRecoveryFactory
This interface is implemented by the connection factory so that it can provide recovery resources to the transaction layer.
|
Modifier and Type | Method and Description |
---|---|
void |
addResourceRecoveryFactory(TransactionIntegration.ResourceRecoveryFactory factory)
Agroal calls this method on init to register itself as a XA module capable of recovery.
|
void |
associate(TransactionAware transactionAware,
XAResource xaResource)
Agroal notifies the transaction layer a Tx aware resource (a connection) and it's corresponding XA resource were acquired.
|
boolean |
disassociate(TransactionAware transactionAware)
Agroal notifies the transaction layer that a Tx aware resource (a connection) is about to be returned to the pool.
|
TransactionAware |
getTransactionAware()
Agroal inquires the transaction layer for a Tx aware resource (a connection) that can be acquired.
|
static TransactionIntegration |
none()
The default implementation of the transaction layer, that performs no actions.
|
void |
removeResourceRecoveryFactory(TransactionIntegration.ResourceRecoveryFactory factory)
Agroal calls this method on shutdown to de-register itself as a XA module capable of recovery.
|
static TransactionIntegration none()
TransactionAware getTransactionAware() throws SQLException
SQLException
void associate(TransactionAware transactionAware, XAResource xaResource) throws SQLException
SQLException
boolean disassociate(TransactionAware transactionAware) throws SQLException
SQLException
void addResourceRecoveryFactory(TransactionIntegration.ResourceRecoveryFactory factory)
void removeResourceRecoveryFactory(TransactionIntegration.ResourceRecoveryFactory factory)
Copyright © 2020 JBoss by Red Hat. All rights reserved.