Example usage for Java org.apache.zookeeper.recipes.lock WriteLock fields, constructors, methods, implement or subclass
The text is from its open source code.
WriteLock(ZooKeeper zookeeper, String dir, List zookeeper contructor for writelock. |
boolean | lock() Attempts to acquire the exclusive write lock returning whether or not it was acquired. |
void | setLockListener(LockListener callback) register a different call back listener. |
void | unlock() Removes the lock or associated znode if you no longer require the lock. |