| 构造器和说明 |
|---|
ZkDistributeLock(String lockName) |
ZkDistributeLock(String lockName,
int sessionTimeout) |
public ZkDistributeLock(String lockName)
public ZkDistributeLock(String lockName, int sessionTimeout)
zkServers - lockName - sessionTimeout - public void process(org.apache.zookeeper.WatchedEvent event)
process 在接口中 org.apache.zookeeper.Watcherpublic void lockInterruptibly()
throws InterruptedException
lockInterruptibly 在接口中 LockInterruptedExceptionpublic Condition newCondition()
newCondition 在接口中 LockCopyright © 2025. All rights reserved.