@Internal
public interface ClusterLockBootstrapDao
extends com.atlassian.beehive.db.spi.ClusterLockDao
ClusterLockDao
.Modifier and Type | Method and Description |
---|---|
void |
ensureClusterLockTableExists()
Creates lock table if required.
|
boolean |
tryUpdateAcquireNodeScopedLock(@NotNull String lockName,
@NotNull String nodeId,
long lockTimeoutSeconds)
Try to acquire an existing lock for the given node.
|
void |
unlock(@NotNull String lockName,
@NotNull String nodeId)
Force unlock a lock held by a specified node.
|
void ensureClusterLockTableExists()
boolean tryUpdateAcquireNodeScopedLock(@NotNull @NotNull String lockName, @NotNull @NotNull String nodeId, long lockTimeoutSeconds)
ClusterLockDao.tryAcquireLock(String)
lockName
- name of the lock to acquirenodeId
- this node idlockTimeoutSeconds
- time (in seconds) after which the lock can be taken overCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences