@InterfaceAudience.Private public class DirectBufferPool extends Object
Constructor and Description |
---|
DirectBufferPool() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getBuffer(int size)
Allocate a direct buffer of the specified size, in bytes.
|
void |
returnBuffer(ByteBuffer buf)
Return a buffer into the pool.
|
public ByteBuffer getBuffer(int size)
public void returnBuffer(ByteBuffer buf)
buf
- the buffer to returnCopyright © 2013 Apache Software Foundation. All rights reserved.