public interface ByteBufferPool
ByteBuffers.| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
acquire(int size)
Borrow a buffer from the pool.
|
void |
release(ByteBuffer buffer)
Returns a buffer to the pool.
|
ByteBuffer acquire(int size)
size - The minimum size and initial limit of the buffer.void release(ByteBuffer buffer)
buffer - the buffer.Copyright © 2004–2022. All rights reserved.