public class SimpleCachedBufferPool
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static io.netty.util.concurrent.FastThreadLocal<java.nio.ByteBuffer> |
reusableBufferHolder |
| Constructor and Description |
|---|
SimpleCachedBufferPool(int maxBufferPoolSize,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
atLimit() |
java.nio.ByteBuffer |
createBuffer(BufferType bufferType) |
java.nio.ByteBuffer |
getThreadLocalReusableBuffer() |
void |
releaseBuffer(java.nio.ByteBuffer buffer) |
void |
setThreadLocalReusableBuffer(java.nio.ByteBuffer buffer) |
void |
shutdown() |
java.lang.String |
toString() |
protected static final io.netty.util.concurrent.FastThreadLocal<java.nio.ByteBuffer> reusableBufferHolder
public SimpleCachedBufferPool(int maxBufferPoolSize,
int bufferSize)
public java.nio.ByteBuffer createBuffer(BufferType bufferType)
public java.nio.ByteBuffer getThreadLocalReusableBuffer()
public void setThreadLocalReusableBuffer(java.nio.ByteBuffer buffer)
public void releaseBuffer(java.nio.ByteBuffer buffer)
public void shutdown()
public boolean atLimit()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2017 The Apache Software Foundation