public interface ManagedClusterLock extends ClusterLock
| Modifier and Type | Method and Description |
|---|---|
ClusterLockStatus |
getClusterLockStatus()
Returns the status of this lock.
|
String |
getName()
Returns the name of this cluster lock.
|
Map<StatisticsKey,Long> |
getStatistics()
Returns the currently available statistics for this lock.
|
boolean |
isLocked() |
isHeldByCurrentThread, lockInterruptibly, newCondition@Nonnull String getName()
ClusterLockService.getLockForName(String).boolean isLocked()
true if any thread on any node holds this lock and
false otherwise@Nonnull Map<StatisticsKey,Long> getStatistics()
Callers should generally make no assumptions about what statistics are available or what they mean, and this is likely to vary with the implementation.
@Nonnull ClusterLockStatus getClusterLockStatus()
Callers must be aware that not all implementations can return a valid update time of the lock.
ClusterLockStatus for this lockCopyright © 2019 Atlassian. All rights reserved.