public class ZooQueueLock extends Object implements DistributedReadWriteLock.QueueLock
Constructor and Description |
---|
ZooQueueLock(IZooReaderWriter zrw,
String path,
boolean ephemeral) |
Modifier and Type | Method and Description |
---|---|
long |
addEntry(byte[] data) |
SortedMap<Long,byte[]> |
getEarlierEntries(long entry) |
void |
removeEntry(long entry) |
public ZooQueueLock(IZooReaderWriter zrw, String path, boolean ephemeral)
public long addEntry(byte[] data)
addEntry
in interface DistributedReadWriteLock.QueueLock
public SortedMap<Long,byte[]> getEarlierEntries(long entry)
getEarlierEntries
in interface DistributedReadWriteLock.QueueLock
public void removeEntry(long entry)
removeEntry
in interface DistributedReadWriteLock.QueueLock
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.