public class DatabaseClusterLockService extends Object implements ManagedClusterLockService
This implementation relies on the host application providing SPI implementations for Data Access objects.
| Constructor and Description |
|---|
DatabaseClusterLockService(ClusterLockDao clusterLockDao) |
| Modifier and Type | Method and Description |
|---|---|
Collection<com.atlassian.beehive.db.DatabaseClusterLock> |
getAllKnownClusterLocks() |
ClusterLock |
getLockForName(String lockName) |
Collection<ClusterLockStatus> |
getStatusesOfAllHeldClusterLocks() |
void |
shutdown() |
public DatabaseClusterLockService(ClusterLockDao clusterLockDao)
public Collection<com.atlassian.beehive.db.DatabaseClusterLock> getAllKnownClusterLocks()
getAllKnownClusterLocks in interface ManagedClusterLockService@Nonnull public Collection<ClusterLockStatus> getStatusesOfAllHeldClusterLocks()
getStatusesOfAllHeldClusterLocks in interface ManagedClusterLockServicepublic ClusterLock getLockForName(@Nonnull String lockName)
getLockForName in interface ClusterLockService@PreDestroy public void shutdown()
Copyright © 2019 Atlassian. All rights reserved.