Package io.github.devlibx.easy.lock
Class IDistributedLockService.NoOpLock
java.lang.Object
io.github.devlibx.easy.lock.IDistributedLockService.NoOpLock
- All Implemented Interfaces:
Lock
- Direct Known Subclasses:
IDistributedLockService.ExistingLockWithNoOp
- Enclosing interface:
IDistributedLockService
No-Op implementation for lock
-
Constructor Details
-
NoOpLock
public NoOpLock()
-
-
Method Details
-
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
-