public interface ManagedClusterLockService extends ClusterLockService
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends ManagedClusterLock> |
getAllKnownClusterLocks()
Returns all the cluster locks that are currently known to this cluster lock service.
|
Collection<ClusterLockStatus> |
getStatusesOfAllHeldClusterLocks()
Returns lock status of every cluster lock being held.
|
getLockForNameCollection<? extends ManagedClusterLock> getAllKnownClusterLocks()
The specifics are mostly left up to the implementation, with the following caveats:
Consumers MUST NOT rely on this method for the correctness of their locking behaviour. This information is intended for instrumentation and other similar management concerns, only.
@Nonnull Collection<ClusterLockStatus> getStatusesOfAllHeldClusterLocks()
This is intended to provide additional information about misbehaving locks and thus this method should return the most up-to-date and non-cached data.
Consumers must be aware that not all implementations can return a valid update time of the locks.
Copyright © 2019 Atlassian. All rights reserved.