public final class ThreadLocalByteBufferHolder
extends java.lang.Object
Constructor and Description |
---|
ThreadLocalByteBufferHolder(BufferType bufferType) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getBuffer(int size)
Returns the buffer for the current thread.
|
public ThreadLocalByteBufferHolder(BufferType bufferType)
public java.nio.ByteBuffer getBuffer(int size)
If the buffer for the current thread does not have a capacity large enough. A new buffer with the requested size will be instatiated an will replace the existing one.
size
- the buffer sizeCopyright © 2009-2021 The Apache Software Foundation