public class ZooLock extends ZooLock
ZooLock.AsyncLockWatcher, ZooLock.LockLossReason, ZooLock.LockWatcherLOCK_PREFIX, zooKeeper| Modifier and Type | Method and Description |
|---|---|
static void |
deleteLock(String path) |
static boolean |
deleteLock(String path,
String lockData) |
deleteLock, deleteLock, getLockData, getLockData, getLockID, getLockName, getLockPath, getSessionId, getSessionId, isLocked, isLockHeld, lockAsync, process, replaceLockData, tryLock, tryToCancelAsyncLockOrUnlock, unlock, wasLockAcquiredpublic ZooLock(String path)
public static void deleteLock(String path) throws InterruptedException, org.apache.zookeeper.KeeperException
InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic static boolean deleteLock(String path, String lockData) throws InterruptedException, org.apache.zookeeper.KeeperException
InterruptedExceptionorg.apache.zookeeper.KeeperExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.