public class JiraClusterLockDao extends Object implements com.atlassian.beehive.db.spi.ClusterLockDao
Constructor and Description |
---|
JiraClusterLockDao(EntityEngine entityEngine) |
Modifier and Type | Method and Description |
---|---|
void |
deleteLocksHeldByNode(String nodeId) |
com.atlassian.beehive.db.spi.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 JiraClusterLockDao(EntityEngine entityEngine)
@Nullable public com.atlassian.beehive.db.spi.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 © 2002-2015 Atlassian. All Rights Reserved.