java.lang.Object | |
↳ | org.apache.helix.lock.zk.ZKHelixLock |
Locking scheme for Helix that uses the ZooKeeper exclusive lock implementation Please use the following lock order convention: Cluster, Participant, Resource, Partition WARNING: this is not a reentrant lock
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize for a cluster and scope
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check if this object is blocked waiting on the lock
| |||||||||||
Try to synchronously lock the scope
| |||||||||||
Unlock the scope
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Set if this the lock method is currently blocked
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.helix.lock.HelixLock
|
Initialize for a cluster and scope
clusterId | the cluster under which the lock will live |
---|---|
scope | the scope to lock |
zkClient | an active ZK client |
Check if this object is blocked waiting on the lock
Try to synchronously lock the scope
Unlock the scope
Set if this the lock method is currently blocked
isBlocked | true if blocked, false otherwise |
---|