Package io.github.devlibx.easy.lock
Class DistributedLockService
java.lang.Object
io.github.devlibx.easy.lock.DistributedLockService
- All Implemented Interfaces:
IDistributedLockService
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.devlibx.easy.lock.IDistributedLockService
IDistributedLockService.ExistingLockWithNoOp, IDistributedLockService.NoOpDistributedLock, IDistributedLockService.NoOpDistributedLockIdResolver, IDistributedLockService.NoOpDistributedLockService, IDistributedLockService.NoOpLock -
Field Summary
Fields inherited from interface io.github.devlibx.easy.lock.IDistributedLockService
NO_OP_LOCK_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDistributedLockService(LockConfigs lockConfigs, Map<String, ILockBuilder> lockBuilders) -
Method Summary
-
Constructor Details
-
DistributedLockService
@Inject public DistributedLockService(LockConfigs lockConfigs, Map<String, ILockBuilder> lockBuilders)
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:IDistributedLockServiceInitialize locks- Specified by:
initializein interfaceIDistributedLockService
-
shutdown
public void shutdown()Description copied from interface:IDistributedLockServiceRelease all locks- Specified by:
shutdownin interfaceIDistributedLockService
-
getLock
- Specified by:
getLockin interfaceIDistributedLockService
-