public class ZkLock extends ReentrantLock
| 构造器和说明 |
|---|
ZkLock() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, unlockpublic Condition getDataChangedCondition()
public Condition getStateChangedCondition()
public Condition getZNodeEventCondition()
Copyright © 2019. All rights reserved.