org.apache.accumulo.server.zookeeper
public class ZooLock extends ZooLock
ZooLock.AsyncLockWatcher, ZooLock.LockLossReason, ZooLock.LockWatcher
LOCK_PREFIX, log, 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, isLockHeld, lockAsync, process, replaceLockData, tryLock, tryToCancelAsyncLockOrUnlock, unlock, wasLockAcquired
public ZooLock(String path)
public static void deleteLock(String path) throws InterruptedException, org.apache.zookeeper.KeeperException
InterruptedException
org.apache.zookeeper.KeeperException
public static boolean deleteLock(String path, String lockData) throws InterruptedException, org.apache.zookeeper.KeeperException
InterruptedException
org.apache.zookeeper.KeeperException
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.