public class NoPool extends java.lang.Object implements BufferPool
| Modifier and Type | Field and Description |
|---|---|
static BufferPool |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
get(int capacity)
Fetch a buffer from the pool.
|
void |
release(java.nio.ByteBuffer buffer)
Return a buffer to the pool.
|
public static final BufferPool INSTANCE
public java.nio.ByteBuffer get(int capacity)
BufferPoolget in interface BufferPoolcapacity - the desired size of the bufferpublic void release(java.nio.ByteBuffer buffer)
BufferPoolrelease in interface BufferPoolbuffer - the buffer to return