public class ZookeeperLock extends Object implements Lock
ZookeeperLock()
void
lock(String lockName, String lockValue, long leaseTime)
boolean
renewLock(String lockName, String lockValue, long leaseTime)
shutDown()
tryLock(String lockName, String lockValue, long leaseTime)
unlock(String lockName, String lockValue)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ZookeeperLock()
public void lock(String lockName, String lockValue, long leaseTime)
lock
Lock
public boolean tryLock(String lockName, String lockValue, long leaseTime)
tryLock
public void unlock(String lockName, String lockValue)
unlock
public boolean renewLock(String lockName, String lockValue, long leaseTime)
renewLock
public void shutDown()
shutDown
Copyright © 2018. All rights reserved.