org.apache.accumulo.server.zookeeper
Class DistributedReadWriteLock
java.lang.Object
org.apache.accumulo.server.zookeeper.DistributedReadWriteLock
- All Implemented Interfaces:
- ReadWriteLock
public class DistributedReadWriteLock
- extends Object
- implements ReadWriteLock
Field Summary |
static org.apache.log4j.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Logger log
DistributedReadWriteLock
public DistributedReadWriteLock(DistributedReadWriteLock.QueueLock qlock,
byte[] data)
recoverLock
public static Lock recoverLock(DistributedReadWriteLock.QueueLock qlock,
byte[] data)
readLock
public Lock readLock()
- Specified by:
readLock
in interface ReadWriteLock
writeLock
public Lock writeLock()
- Specified by:
writeLock
in interface ReadWriteLock
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.