public class SagaCore extends AbstractCore
lockManager, LOGGER, remotingServer| 构造器和说明 |
|---|
SagaCore(RemotingServer remotingServer) |
| 限定符和类型 | 方法和说明 |
|---|---|
BranchStatus |
branchCommitSend(BranchCommitRequest request,
GlobalSession globalSession,
BranchSession branchSession) |
BranchStatus |
branchRollbackSend(BranchRollbackRequest request,
GlobalSession globalSession,
BranchSession branchSession) |
boolean |
doGlobalCommit(GlobalSession globalSession,
boolean retrying)
Do global commit.
|
void |
doGlobalReport(GlobalSession globalSession,
String xid,
GlobalStatus globalStatus)
Do global report.
|
boolean |
doGlobalRollback(GlobalSession globalSession,
boolean retrying)
Do global rollback.
|
BranchType |
getHandleBranchType() |
void |
globalSessionStatusCheck(GlobalSession globalSession) |
begin, branchCommit, branchRegister, branchReport, branchRollback, branchSessionLock, branchSessionUnlock, commit, getStatus, globalReport, lockQuery, rollbackpublic SagaCore(RemotingServer remotingServer)
public BranchType getHandleBranchType()
getHandleBranchType 在类中 AbstractCorepublic void globalSessionStatusCheck(GlobalSession globalSession) throws GlobalTransactionException
public BranchStatus branchCommitSend(BranchCommitRequest request, GlobalSession globalSession, BranchSession branchSession) throws IOException, TimeoutException
branchCommitSend 在类中 AbstractCoreIOExceptionTimeoutExceptionpublic BranchStatus branchRollbackSend(BranchRollbackRequest request, GlobalSession globalSession, BranchSession branchSession) throws IOException, TimeoutException
branchRollbackSend 在类中 AbstractCoreIOExceptionTimeoutExceptionpublic boolean doGlobalCommit(GlobalSession globalSession, boolean retrying) throws TransactionException
CoredoGlobalCommit 在接口中 CoredoGlobalCommit 在类中 AbstractCoreglobalSession - the global sessionretrying - the retryingTransactionException - the transaction exceptionpublic boolean doGlobalRollback(GlobalSession globalSession, boolean retrying) throws TransactionException
CoredoGlobalRollback 在接口中 CoredoGlobalRollback 在类中 AbstractCoreglobalSession - the global sessionretrying - the retryingTransactionException - the transaction exceptionpublic void doGlobalReport(GlobalSession globalSession, String xid, GlobalStatus globalStatus) throws TransactionException
CoredoGlobalReport 在接口中 CoredoGlobalReport 在类中 AbstractCoreglobalSession - the global sessionxid - Transaction id.globalStatus - the global statusTransactionException - the transaction exceptionCopyright © 2022 Seata. All rights reserved.