Package io.dingodb.sdk.service
Class LockService.Lock
java.lang.Object
io.dingodb.sdk.service.LockService.Lock
- All Implemented Interfaces:
Lock
- Enclosing class:
- LockService
-
Field Details
-
lockId
-
resourceKey
-
resourceValue
-
-
Constructor Details
-
Lock
Deprecated. -
Lock
-
-
Method Details
-
watchDestroy
-
lock
public void lock() -
lockInterruptibly
- Specified by:
lockInterruptiblyin interfaceLock- Throws:
InterruptedException
-
tryLock
public boolean tryLock() -
tryLock
- Specified by:
tryLockin interfaceLock- Throws:
InterruptedException
-
unlock
public void unlock() -
newCondition
- Specified by:
newConditionin interfaceLock
-