public class CrowdClusterLockDaoDecorator extends Object implements com.atlassian.beehive.db.spi.ClusterLockDao
Constructor and Description |
---|
CrowdClusterLockDaoDecorator(ClusterLockDAOHibernate dao) |
Modifier and Type | Method and Description |
---|---|
void |
deleteLocksHeldByNode(String nodeId) |
List<com.atlassian.beehive.core.ClusterLockStatus> |
getAllHeldClusterLocks() |
com.atlassian.beehive.core.ClusterLockStatus |
getClusterLockStatusByName(String lockName) |
void |
insertEmptyClusterLock(String lockName,
long updateTime) |
boolean |
tryUpdateAcquireLock(String lockName,
String nodeId,
long updateTime) |
void |
unlock(String lockName,
String nodeId,
long updateTime) |
public CrowdClusterLockDaoDecorator(ClusterLockDAOHibernate dao)
@Nonnull public List<com.atlassian.beehive.core.ClusterLockStatus> getAllHeldClusterLocks()
getAllHeldClusterLocks
in interface com.atlassian.beehive.db.spi.ClusterLockDao
@Nullable public com.atlassian.beehive.core.ClusterLockStatus getClusterLockStatusByName(@Nonnull String lockName)
getClusterLockStatusByName
in interface com.atlassian.beehive.db.spi.ClusterLockDao
public boolean tryUpdateAcquireLock(@Nonnull String lockName, @Nonnull String nodeId, long updateTime)
tryUpdateAcquireLock
in interface com.atlassian.beehive.db.spi.ClusterLockDao
public void insertEmptyClusterLock(@Nonnull String lockName, long updateTime)
insertEmptyClusterLock
in interface com.atlassian.beehive.db.spi.ClusterLockDao
public void unlock(@Nonnull String lockName, @Nonnull String nodeId, long updateTime)
unlock
in interface com.atlassian.beehive.db.spi.ClusterLockDao
public void deleteLocksHeldByNode(String nodeId)
deleteLocksHeldByNode
in interface com.atlassian.beehive.db.spi.ClusterLockDao
Copyright © 2020 Atlassian. All rights reserved.