| 限定符和类型 | 方法和说明 |
|---|---|
BranchStatus |
DefaultCore.branchCommit(GlobalSession globalSession,
BranchSession branchSession) |
BranchStatus |
TransactionCoordinatorOutbound.branchCommit(GlobalSession globalSession,
BranchSession branchSession)
Commit a branch transaction.
|
BranchStatus |
AbstractCore.branchCommit(GlobalSession globalSession,
BranchSession branchSession) |
protected BranchStatus |
AbstractCore.branchCommitSend(BranchCommitRequest request,
GlobalSession globalSession,
BranchSession branchSession) |
BranchStatus |
DefaultCore.branchRollback(GlobalSession globalSession,
BranchSession branchSession) |
BranchStatus |
TransactionCoordinatorOutbound.branchRollback(GlobalSession globalSession,
BranchSession branchSession)
Rollback a branch transaction.
|
BranchStatus |
AbstractCore.branchRollback(GlobalSession globalSession,
BranchSession branchSession) |
protected BranchStatus |
AbstractCore.branchRollbackSend(BranchRollbackRequest request,
GlobalSession globalSession,
BranchSession branchSession) |
protected void |
AbstractCore.branchSessionLock(GlobalSession globalSession,
BranchSession branchSession) |
protected void |
AbstractCore.branchSessionUnlock(BranchSession branchSession) |
void |
DefaultCoordinator.doBranchRemoveAsync(GlobalSession globalSession,
BranchSession branchSession)
Asynchronous remove branch
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
AbstractLockManager.acquireLock(BranchSession branchSession) |
boolean |
LockManager.acquireLock(BranchSession branchSession)
Acquire lock boolean.
|
boolean |
AbstractLockManager.acquireLock(BranchSession branchSession,
boolean autoCommit,
boolean skipCheckLock) |
boolean |
LockManager.acquireLock(BranchSession branchSession,
boolean autoCommit,
boolean skipCheckLock)
Acquire lock boolean.
|
List<RowLock> |
AbstractLockManager.collectRowLocks(BranchSession branchSession) |
List<RowLock> |
LockManager.collectRowLocks(BranchSession branchSession)
Collect row locks list
|
protected abstract Locker |
AbstractLockManager.getLocker(BranchSession branchSession)
Gets locker.
|
boolean |
AbstractLockManager.releaseLock(BranchSession branchSession) |
boolean |
LockManager.releaseLock(BranchSession branchSession)
Un lock boolean.
|
| 限定符和类型 | 方法和说明 |
|---|---|
BranchSession |
GlobalSession.getBranch(long branchId)
Gets branch.
|
static BranchSession |
SessionHelper.newBranch(BranchType branchType,
String xid,
long branchId,
String resourceId,
String applicationData)
New branch
|
static BranchSession |
SessionHelper.newBranchByGlobal(GlobalSession globalSession,
BranchType branchType,
String resourceId,
String lockKeys,
String clientId) |
static BranchSession |
SessionHelper.newBranchByGlobal(GlobalSession globalSession,
BranchType branchType,
String resourceId,
String applicationData,
String lockKeys,
String clientId)
New branch by global branch session.
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<BranchSession> |
GlobalSession.getBranchSessions() |
List<BranchSession> |
GlobalSession.getReverseSortedBranches()
Gets reverse sorted branches.
|
List<BranchSession> |
GlobalSession.getSortedBranches()
Gets sorted branches.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
GlobalSession.add(BranchSession branchSession)
Add boolean.
|
void |
GlobalSession.addBranch(BranchSession branchSession) |
void |
SessionLifecycle.addBranch(BranchSession branchSession)
Add branch.
|
void |
SessionManager.addBranchSession(GlobalSession globalSession,
BranchSession session)
Add branch session.
|
void |
AbstractSessionManager.addBranchSession(GlobalSession session,
BranchSession branchSession) |
void |
GlobalSession.changeBranchStatus(BranchSession branchSession,
BranchStatus status) |
void |
SessionLifecycle.changeBranchStatus(BranchSession branchSession,
BranchStatus status)
Change branch status.
|
int |
BranchSession.compareTo(BranchSession o) |
Boolean |
BranchSessionHandler.handle(BranchSession branchSession)
Handle branch session.
|
void |
SessionLifecycleListener.onAddBranch(GlobalSession globalSession,
BranchSession branchSession)
On add branch.
|
void |
AbstractSessionManager.onAddBranch(GlobalSession globalSession,
BranchSession branchSession) |
void |
SessionLifecycleListener.onBranchStatusChange(GlobalSession globalSession,
BranchSession branchSession,
BranchStatus status)
On branch status change.
|
void |
AbstractSessionManager.onBranchStatusChange(GlobalSession globalSession,
BranchSession branchSession,
BranchStatus status) |
void |
SessionLifecycleListener.onRemoveBranch(GlobalSession globalSession,
BranchSession branchSession)
On remove branch.
|
void |
AbstractSessionManager.onRemoveBranch(GlobalSession globalSession,
BranchSession branchSession) |
boolean |
GlobalSession.remove(BranchSession branchSession)
Remove boolean.
|
void |
GlobalSession.removeBranch(BranchSession branchSession) |
void |
SessionLifecycle.removeBranch(BranchSession branchSession)
Remove branch.
|
static void |
SessionHelper.removeBranch(GlobalSession globalSession,
BranchSession branchSession,
boolean isAsync)
remove branchSession from globalSession
|
void |
SessionManager.removeBranchSession(GlobalSession globalSession,
BranchSession session)
Remove branch session.
|
void |
AbstractSessionManager.removeBranchSession(GlobalSession globalSession,
BranchSession branchSession) |
void |
SessionManager.updateBranchSessionStatus(BranchSession session,
BranchStatus status)
Update branch session status.
|
void |
AbstractSessionManager.updateBranchSessionStatus(BranchSession branchSession,
BranchStatus status) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Boolean |
SessionHelper.forEach(Collection<BranchSession> sessions,
BranchSessionHandler handler)
Foreach branch sessions.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static BranchSession |
SessionConverter.convertBranchSession(BranchTransactionDO branchTransactionDO) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Set<BranchSessionVO> |
SessionConverter.convertBranchSession(List<BranchSession> branchSessions)
convert BranchSession to BranchSessionVO
|
static Set<BranchSessionVO> |
SessionConverter.converToBranchSession(List<BranchSession> branchSessions) |
| 限定符和类型 | 方法和说明 |
|---|---|
Locker |
DataBaseLockManager.getLocker(BranchSession branchSession) |
boolean |
DataBaseLockManager.releaseLock(BranchSession branchSession) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DataBaseSessionManager.addBranchSession(GlobalSession globalSession,
BranchSession session) |
void |
DataBaseSessionManager.removeBranchSession(GlobalSession globalSession,
BranchSession session) |
void |
DataBaseSessionManager.updateBranchSessionStatus(BranchSession session,
BranchStatus status) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected BranchSession |
FileLocker.branchSession
The Branch session.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Locker |
FileLockManager.getLocker(BranchSession branchSession) |
| 构造器和说明 |
|---|
FileLocker(BranchSession branchSession)
Instantiates a new Memory locker.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Locker |
RedisLockManager.getLocker(BranchSession branchSession) |
boolean |
RedisLockManager.releaseLock(BranchSession branchSession) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RedisSessionManager.addBranchSession(GlobalSession globalSession,
BranchSession session) |
void |
RedisSessionManager.removeBranchSession(GlobalSession globalSession,
BranchSession session) |
void |
RedisSessionManager.updateBranchSessionStatus(BranchSession session,
BranchStatus status) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
ATCore.branchSessionLock(GlobalSession globalSession,
BranchSession branchSession) |
protected void |
ATCore.branchSessionUnlock(BranchSession branchSession) |
| 限定符和类型 | 方法和说明 |
|---|---|
BranchStatus |
SagaCore.branchCommitSend(BranchCommitRequest request,
GlobalSession globalSession,
BranchSession branchSession) |
BranchStatus |
SagaCore.branchRollbackSend(BranchRollbackRequest request,
GlobalSession globalSession,
BranchSession branchSession) |
Copyright © 2022 Seata. All rights reserved.