protected static class Serializer.BufferQueue
extends Object
byte[] queue ordered by array
length.
The queue is small enough to simply use a linear scan search for
maintaining its order. The entire queue data is held by a SoftReference, so when necessary, GC can release the whole buffer cache.
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected Serializer.BufferNode |
headBufferNode |
| Modifier | Constructor and Description |
|---|---|
protected |
BufferQueue() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
dequeue() |
void |
enqueue(byte[] buffer) |
protected int count
protected Serializer.BufferNode headBufferNode