public class ResourceManagerXA extends AbstractDataSourceCacheResourceManager
| Modifier and Type | Field and Description |
|---|---|
protected ScheduledExecutorService |
xaTwoPhaseTimeoutChecker
The Timer check xa branch two phase hold timeout.
|
dataSourceCache| Constructor and Description |
|---|
ResourceManagerXA() |
| Modifier and Type | Method and Description |
|---|---|
BranchStatus |
branchCommit(BranchType branchType,
String xid,
long branchId,
String resourceId,
String applicationData)
Commit a branch transaction.
|
BranchStatus |
branchRollback(BranchType branchType,
String xid,
long branchId,
String resourceId,
String applicationData)
Rollback a branch transaction.
|
BranchType |
getBranchType()
Get the BranchType.
|
void |
init()
init method
|
void |
initXaTwoPhaseTimeoutChecker() |
getManagedResources, registerResourcebranchRegister, branchReport, lockQuery, unregisterResourceprotected volatile ScheduledExecutorService xaTwoPhaseTimeoutChecker
public void init()
Initializeinit in interface Initializeinit in class AbstractDataSourceCacheResourceManagerpublic void initXaTwoPhaseTimeoutChecker()
public BranchType getBranchType()
ResourceManagerpublic BranchStatus branchCommit(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
ResourceManagerInboundbranchType - the branch typexid - Transaction id.branchId - Branch id.resourceId - Resource id.applicationData - Application data bind with this branch.TransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.public BranchStatus branchRollback(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
ResourceManagerInboundbranchType - the branch typexid - Transaction id.branchId - Branch id.resourceId - Resource id.applicationData - Application data bind with this branch.TransactionException - Any exception that fails this will be wrapped with TransactionException and thrown
out.Copyright © 2023 Seata. All rights reserved.