public abstract class AbstractLocker extends Object implements Locker
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
LOCK_SPLIT
The constant LOCK_SPLIT.
|
protected static org.slf4j.Logger |
LOGGER
The constant LOGGER.
|
| 构造器和说明 |
|---|
AbstractLocker() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanAllLocks()
Clean all locks.
|
protected List<LockDO> |
convertToLockDO(List<RowLock> locks)
Convert to lock do list.
|
protected LockDO |
convertToLockDO(RowLock rowLock) |
protected String |
getRowKey(String resourceId,
String tableName,
String pk)
Get row key string.
|
boolean |
releaseLock(String xid)
Release lock boolean.
|
boolean |
releaseLock(String xid,
Long branchId)
Release lock boolean.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireLock, acquireLock, isLockable, releaseLock, updateLockStatusprotected List<LockDO> convertToLockDO(List<RowLock> locks)
locks - the locksprotected String getRowKey(String resourceId, String tableName, String pk)
resourceId - the resource idtableName - the table namepk - the pkpublic void cleanAllLocks()
LockercleanAllLocks 在接口中 Lockerpublic boolean releaseLock(String xid, Long branchId)
LockerreleaseLock 在接口中 Lockerxid - the xidbranchId - the branch idpublic boolean releaseLock(String xid)
LockerreleaseLock 在接口中 Lockerxid - the xidCopyright © 2022 Seata. All rights reserved.