public interface LockManager
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acquireLock(BranchSession branchSession)
Acquire lock boolean.
|
boolean |
acquireLock(BranchSession branchSession,
boolean autoCommit,
boolean skipCheckLock)
Acquire lock boolean.
|
void |
cleanAllLocks()
Clean all locks.
|
List<RowLock> |
collectRowLocks(BranchSession branchSession)
Collect row locks list
|
boolean |
isLockable(String xid,
String resourceId,
String lockKey)
Is lockable boolean.
|
boolean |
releaseGlobalSessionLock(GlobalSession globalSession)
Un lock boolean.
|
boolean |
releaseLock(BranchSession branchSession)
Un lock boolean.
|
void |
updateLockStatus(String xid,
LockStatus lockStatus)
update lock status.
|
boolean acquireLock(BranchSession branchSession) throws TransactionException
branchSession - the branch sessionTransactionException - the transaction exceptionboolean acquireLock(BranchSession branchSession, boolean autoCommit, boolean skipCheckLock) throws TransactionException
branchSession - the branch sessionautoCommit - the auto commitskipCheckLock - whether skip check lock or notTransactionException - the transaction exceptionboolean releaseLock(BranchSession branchSession) throws TransactionException
branchSession - the branch sessionTransactionException - the transaction exceptionboolean releaseGlobalSessionLock(GlobalSession globalSession) throws TransactionException
globalSession - the global sessionTransactionException - the transaction exceptionboolean isLockable(String xid, String resourceId, String lockKey) throws TransactionException
xid - the xidresourceId - the resource idlockKey - the lock keyTransactionException - the transaction exceptionvoid cleanAllLocks()
throws TransactionException
TransactionException - the transaction exceptionList<RowLock> collectRowLocks(BranchSession branchSession)
branchSession - the branch sessionvoid updateLockStatus(String xid, LockStatus lockStatus) throws TransactionException
xid - the xidlockStatus - the lock statusTransactionException - the transaction exceptionCopyright © 2022 Seata. All rights reserved.