public class BufferPool
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
BufferPool.BufferPoolAPI |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_POOL_SIZE |
protected static BufferPool |
instance |
protected BufferPool.BufferPoolAPI |
pool |
protected static StringManager |
sm |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
XByteBuffer |
getBuffer(int minSize,
boolean discard) |
static BufferPool |
getBufferPool() |
void |
returnBuffer(XByteBuffer buffer) |
public static final int DEFAULT_POOL_SIZE
protected static final StringManager sm
protected static volatile BufferPool instance
protected final BufferPool.BufferPoolAPI pool
public XByteBuffer getBuffer(int minSize, boolean discard)
public void returnBuffer(XByteBuffer buffer)
public void clear()
public static BufferPool getBufferPool()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.