protected final class BufferManager.CloseableQueueBuffer<T> extends BufferManager.CloseableBuffer implements BufferManager.QueueBuffer<T>
| Modifier and Type | Field and Description |
|---|---|
protected Map<Long,T> |
buffer |
name, onHeap| Modifier | Constructor and Description |
|---|---|
protected |
CloseableQueueBuffer(String name,
boolean onHeap,
Map<Long,T> buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(T value)
Add a value to the end of this buffer.
|
boolean |
isEmpty()
Determine if this buffer is empty.
|
Iterator<T> |
iterator()
Get an iterator over all of the values.
|
long |
size()
Get the size of the buffer.
|
String |
toString() |
closeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloseforEach, spliteratorpublic boolean isEmpty()
BufferManager.BufferBufferManager.Buffer.size().isEmpty in interface BufferManager.Bufferpublic long size()
BufferManager.Buffersize in interface BufferManager.Bufferpublic void append(T value)
BufferManager.QueueBufferappend in interface BufferManager.QueueBuffer<T>value - the value to be added; may be nullpublic Iterator<T> iterator()
BufferManager.QueueBufferCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.