public class ZkLock
extends java.util.concurrent.locks.ReentrantLock
| Constructor and Description |
|---|
ZkLock() |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.locks.Condition |
getDataChangedCondition()
This condition will be signaled if a zookeeper event was processed and the event contains a data/child change.
|
java.util.concurrent.locks.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 ...).
|
java.util.concurrent.locks.Condition |
getZNodeEventCondition()
This condition will be signaled if any znode related zookeeper event was received.
|
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlockpublic java.util.concurrent.locks.Condition getDataChangedCondition()
public java.util.concurrent.locks.Condition getStateChangedCondition()
public java.util.concurrent.locks.Condition getZNodeEventCondition()