Java org.apache.zookeeper.recipes.lock WriteLock fields, constructors, methods, implement or subclass

Example usage for Java org.apache.zookeeper.recipes.lock WriteLock fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.zookeeper.recipes.lock WriteLock.

The text is from its open source code.

Constructor

WriteLock(ZooKeeper zookeeper, String dir, List acl)
zookeeper contructor for writelock.

Method

booleanlock()
Attempts to acquire the exclusive write lock returning whether or not it was acquired.
voidsetLockListener(LockListener callback)
register a different call back listener.
voidunlock()
Removes the lock or associated znode if you no longer require the lock.