public class SimpleClusterLockService extends Object implements ManagedClusterLockService
Certain cross product libraries (eg SAL and AO) will depend on having an implementation of ClusterLockService, and this one can used by applications that only run as a single node.
| Constructor and Description |
|---|
SimpleClusterLockService() |
| Modifier and Type | Method and Description |
|---|---|
Collection<com.atlassian.beehive.simple.SingleNodeLock> |
getAllKnownClusterLocks() |
ClusterLock |
getLockForName(String lockName) |
Collection<ClusterLockStatus> |
getStatusesOfAllHeldClusterLocks() |
public Collection<com.atlassian.beehive.simple.SingleNodeLock> getAllKnownClusterLocks()
getAllKnownClusterLocks in interface ManagedClusterLockService@Nonnull public Collection<ClusterLockStatus> getStatusesOfAllHeldClusterLocks()
getStatusesOfAllHeldClusterLocks in interface ManagedClusterLockServicepublic ClusterLock getLockForName(@Nonnull String lockName)
getLockForName in interface ClusterLockServiceCopyright © 2020 Atlassian. All rights reserved.