Class ZooQueueLock
- java.lang.Object
-
- org.apache.accumulo.fate.zookeeper.ZooQueueLock
-
- All Implemented Interfaces:
DistributedReadWriteLock.QueueLock
public class ZooQueueLock extends Object implements DistributedReadWriteLock.QueueLock
-
-
Constructor Summary
Constructors Constructor Description ZooQueueLock(IZooReaderWriter zrw, String path, boolean ephemeral)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
addEntry(byte[] data)
SortedMap<Long,byte[]>
getEarlierEntries(long entry)
void
removeEntry(long entry)
-
-
-
Constructor Detail
-
ZooQueueLock
public ZooQueueLock(IZooReaderWriter zrw, String path, boolean ephemeral)
-
-
Method Detail
-
addEntry
public long addEntry(byte[] data)
- Specified by:
addEntry
in interfaceDistributedReadWriteLock.QueueLock
-
getEarlierEntries
public SortedMap<Long,byte[]> getEarlierEntries(long entry)
- Specified by:
getEarlierEntries
in interfaceDistributedReadWriteLock.QueueLock
-
removeEntry
public void removeEntry(long entry)
- Specified by:
removeEntry
in interfaceDistributedReadWriteLock.QueueLock
-
-