public interface LockStore
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acquireLock(List<LockDO> lockDOs)
Acquire lock boolean.
|
boolean |
acquireLock(List<LockDO> lockDOs,
boolean autoCommit,
boolean skipCheckLock)
Acquire lock boolean.
|
boolean |
acquireLock(LockDO lockDO)
Acquire lock boolean.
|
boolean |
isLockable(List<LockDO> lockDOs)
Is lockable boolean.
|
boolean |
unLock(List<LockDO> lockDOs)
Un lock boolean.
|
boolean |
unLock(LockDO lockDO)
Un lock boolean.
|
boolean |
unLock(String xid) |
boolean |
unLock(String xid,
Long branchId) |
void |
updateLockStatus(String xid,
LockStatus lockStatus)
update lock status .
|
boolean acquireLock(LockDO lockDO)
lockDO - the lock doboolean acquireLock(List<LockDO> lockDOs)
lockDOs - the lock d osboolean acquireLock(List<LockDO> lockDOs, boolean autoCommit, boolean skipCheckLock)
lockDOs - the lock d osautoCommit - the auto commitskipCheckLock - whether skip check lock or notboolean unLock(LockDO lockDO)
lockDO - the lock doboolean unLock(List<LockDO> lockDOs)
lockDOs - the lock d osboolean unLock(String xid)
boolean isLockable(List<LockDO> lockDOs)
lockDOs - the lock dovoid updateLockStatus(String xid, LockStatus lockStatus)
xid - the xidlockStatus - the lock statusCopyright © 2022 Seata. All rights reserved.