public abstract class MappedByteBufferQueue<T> extends AbstractQueue<T>
Modifier and Type | Class and Description |
---|---|
static class |
MappedByteBufferQueue.MappedByteBufferSegmentQueue<T> |
Constructor and Description |
---|
MappedByteBufferQueue(int thresholdBytes) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
protected abstract MappedByteBufferQueue.MappedByteBufferSegmentQueue<T> |
createSegmentQueue(int index,
int thresholdBytes) |
long |
getByteSize() |
protected abstract Comparator<MappedByteBufferQueue.MappedByteBufferSegmentQueue<T>> |
getSegmentQueueComparator() |
protected List<MappedByteBufferQueue.MappedByteBufferSegmentQueue<T>> |
getSegmentQueues() |
Iterator<T> |
iterator() |
boolean |
offer(T e) |
T |
peek() |
T |
poll() |
int |
size() |
add, addAll, element, remove
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
protected abstract MappedByteBufferQueue.MappedByteBufferSegmentQueue<T> createSegmentQueue(int index, int thresholdBytes)
protected abstract Comparator<MappedByteBufferQueue.MappedByteBufferSegmentQueue<T>> getSegmentQueueComparator()
protected final List<MappedByteBufferQueue.MappedByteBufferSegmentQueue<T>> getSegmentQueues()
public boolean offer(T e)
public T poll()
public T peek()
public void clear()
clear
in interface Collection<T>
clear
in class AbstractQueue<T>
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in class AbstractCollection<T>
public int size()
size
in interface Collection<T>
size
in class AbstractCollection<T>
public long getByteSize()
public void close()
Copyright © 2019 Apache Software Foundation. All Rights Reserved.