public class ZkLock extends ReentrantLock
Constructor and Description |
---|
ZkLock() |
Modifier and Type | Method and Description |
---|---|
Condition |
getDataChangedCondition()
This condition will be signaled if a zookeeper event was processed and the event contains a data/child change.
|
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 ...).
|
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, unlock
public Condition getDataChangedCondition()
public Condition getStateChangedCondition()
public Condition getZNodeEventCondition()
Copyright © 2019. All rights reserved.