BufferPool implementation which does no pooling. New instances will be created for each call to allocate.
| Modifier and Type | Field and Description |
|---|---|
| private static final QuiescentBufferPool |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | allocateArray(int
The minimum size array required. Must be size)>= 0.Implements org. Creates a new |
| public ByteBuffer | allocateDirect(int
The minimum size buffer required. Must be size)>= 0.Implements org.
|
| public static BufferPool | |
| public void | releaseArray(byte[]
Instance to return to pool. Must not be buffer)null.
Must not be returned more than 1 time. Must not be used by caller after return.Implements org. Does nothing. |
| public void | releaseDirect(ByteBuffer
Instance to return to pool. Must not be buffer)null.
Must not be returned more than 1 time. Must not be used by caller after return.Implements org. Aggressively releases native resources associated with buffer. |
| INSTANCE | back to summary |
|---|---|
| private static final QuiescentBufferPool INSTANCE | |
| QuiescentBufferPool | back to summary |
|---|---|
| private QuiescentBufferPool() | |
| allocateArray | back to summary |
|---|---|
| public byte[] allocateArray(int size) Implements org. Creates a new
| |
| allocateDirect | back to summary |
|---|---|
| public ByteBuffer allocateDirect(int size) Implements org.
| |
| getInstance | back to summary |
|---|---|
public static BufferPool getInstance()
| |
| releaseArray | back to summary |
|---|---|
| public void releaseArray(byte[] buffer) Implements org. Does nothing.
| |
| releaseDirect | back to summary |
|---|---|
| public void releaseDirect(ByteBuffer buffer) Implements org. Aggressively releases native resources associated with buffer.
| |