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) |
BranchStatus |
branchRollback(BranchType branchType,
String xid,
long branchId,
String resourceId,
String applicationData) |
BranchType |
getBranchType() |
void |
init() |
void |
initXaTwoPhaseTimeoutChecker() |
getManagedResources, registerResourcebranchRegister, branchReport, getGlobalStatus, lockQuery, unregisterResourceprotected volatile ScheduledExecutorService xaTwoPhaseTimeoutChecker
public void init()
init in interface org.apache.seata.common.executor.Initializeinit in class AbstractDataSourceCacheResourceManagerpublic void initXaTwoPhaseTimeoutChecker()
public BranchType getBranchType()
public BranchStatus branchCommit(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
TransactionExceptionpublic BranchStatus branchRollback(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
TransactionExceptionCopyright © 2024 Apache. All rights reserved.