| Modifier and Type | Field and Description |
|---|---|
| public static final BufferPool |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | get(int
the desired size of the buffer capacity)Implements com. |
| public void | release(ByteBuffer
the buffer to return buffer)Implements com. |
| INSTANCE | back to summary |
|---|---|
| public static final BufferPool INSTANCE | |
| NoPool | back to summary |
|---|---|
| private NoPool() | |
| get | back to summary |
|---|---|
| public ByteBuffer get(int capacity) Implements com. Doc from com. Fetch a buffer from the pool.
| |
| release | back to summary |
|---|---|
| public void release(ByteBuffer buffer) Implements com. Doc from com. Return a buffer to the pool.
| |