public interface ByteBufferAllocator
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocate(int size) |
boolean |
isDirect()
Indicates if this allocator will produce ByteBuffers backed by direct memory.
|
void |
release(ByteBuffer b)
For RefCounted implementations using direct memory, the release method
needs to be called to free references to the allocated memory.
|
ByteBuffer allocate(int size)
void release(ByteBuffer b)
b - a ByteBufferboolean isDirect()
Copyright © 2018 The Apache Software Foundation. All rights reserved.