public class AsyncWorker extends Object implements ResourceManagerInbound
| 构造器和说明 |
|---|
AsyncWorker() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void |
init()
Init.
|
public BranchStatus branchCommit(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
ResourceManagerInboundbranchCommit 在接口中 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 void init()
public BranchStatus branchRollback(BranchType branchType, String xid, long branchId, String resourceId, String applicationData) throws TransactionException
ResourceManagerInboundbranchRollback 在接口中 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 © 2019 Seata. All rights reserved.