public class NonLockingLockRepository extends LockRepository
synchronizationObjects| Constructor and Description |
|---|
NonLockingLockRepository() |
NonLockingLockRepository(LifeSupportService lifeSupportService) |
| Modifier and Type | Method and Description |
|---|---|
Lock |
createLock(String lockName) |
void |
leaderElection(String lockName,
LeaderListener listener) |
void |
shutdown() |
getSynchronizationObject, lock, lockinit, onShutdown, start, stoppublic NonLockingLockRepository()
@Inject public NonLockingLockRepository(LifeSupportService lifeSupportService)
public Lock createLock(String lockName)
createLock in class LockRepositorypublic void leaderElection(String lockName, LeaderListener listener)
leaderElection in class LockRepositorypublic void shutdown()
shutdown in interface Lifecycleshutdown in class LifecycleAdapterCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.