org.I0Itec.zkclient
Class ZkLock
java.lang.Object
java.util.concurrent.locks.ReentrantLock
org.I0Itec.zkclient.ZkLock
- All Implemented Interfaces:
- Serializable, Lock
public class ZkLock
- extends ReentrantLock
- See Also:
- Serialized Form
| Methods inherited from class java.util.concurrent.locks.ReentrantLock |
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlock |
ZkLock
public ZkLock()
getDataChangedCondition
public Condition getDataChangedCondition()
- This condition will be signaled if a zookeeper event was processed and the event contains a data/child change.
- Returns:
- the condition.
getStateChangedCondition
public Condition getStateChangedCondition()
- This condition will be signaled if a zookeeper event was processed and the event contains a state change
(connected, disconnected, session expired, etc ...).
- Returns:
- the condition.
getZNodeEventCondition
public Condition getZNodeEventCondition()
- This condition will be signaled if any znode related zookeeper event was received.
- Returns:
- the condition.
Copyright © 2011. All Rights Reserved.