public class BufferPool extends 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 |
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 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-2014 Apache Software Foundation. All Rights Reserved.