Package io.github.devlibx.easy.lock
Class IDistributedLockService.NoOpDistributedLock
java.lang.Object
io.github.devlibx.easy.lock.IDistributedLockService.NoOpDistributedLock
- All Implemented Interfaces:
IDistributedLock
- Enclosing interface:
IDistributedLockService
public static class IDistributedLockService.NoOpDistributedLock
extends Object
implements IDistributedLock
No-Op implementation for lock
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.devlibx.easy.lock.IDistributedLock
IDistributedLock.LockRequest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionachieveLock(IDistributedLock.LockRequest request) Take a lockvoidreleaseLock(Lock lock, IDistributedLock.LockRequest lockRequest) Release a lockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.devlibx.easy.lock.IDistributedLock
releaseResources, setup, tearDown
-
Constructor Details
-
NoOpDistributedLock
public NoOpDistributedLock()
-
-
Method Details
-
achieveLock
Description copied from interface:IDistributedLockTake a lock- Specified by:
achieveLockin interfaceIDistributedLock- Returns:
- a lock object once lock is taken
-
releaseLock
Description copied from interface:IDistributedLockRelease a lock- Specified by:
releaseLockin interfaceIDistributedLock
-