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(int size) |
void |
releaseBuffer(java.nio.ByteBuffer buffer) |
void |
setPreferredReusableBufferType(BufferType type) |
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(int size)
public void setPreferredReusableBufferType(BufferType type)
public void releaseBuffer(java.nio.ByteBuffer buffer)
public void shutdown()
public boolean atLimit()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017 The Apache Software Foundation