public class ResourceManagerXA extends AbstractDataSourceCacheResourceManager
| 限定符和类型 | 字段和说明 |
|---|---|
protected ScheduledExecutorService |
xaTwoPhaseTimeoutChecker
The Timer check xa branch two phase hold timeout.
|
dataSourceCache| 构造器和说明 |
|---|
ResourceManagerXA() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
getManagedResources, registerResourcebranchRegister, branchReport, lockQuery, unregisterResourceprotected final ScheduledExecutorService xaTwoPhaseTimeoutChecker
public void init()
Initializeinit 在接口中 Initializeinit 在类中 AbstractDataSourceCacheResourceManagerpublic 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 © 2022 Seata. All rights reserved.