org.apache.catalina.tribes.io

Class BufferPool

public class BufferPool extends Object

Version: 1.0

Author: Filip Hanik

Nested Class Summary
static interfaceBufferPool.BufferPoolAPI
Field Summary
static intDEFAULT_POOL_SIZE
protected static BufferPoolinstance
protected static Loglog
protected BufferPool.BufferPoolAPIpool
Method Summary
voidclear()
XByteBuffergetBuffer(int minSize, boolean discard)
static BufferPoolgetBufferPool()
voidreturnBuffer(XByteBuffer buffer)

Field Detail

DEFAULT_POOL_SIZE

public static int DEFAULT_POOL_SIZE

instance

protected static volatile BufferPool instance

log

protected static Log log

pool

protected BufferPool.BufferPoolAPI pool

Method Detail

clear

public void clear()

getBuffer

public XByteBuffer getBuffer(int minSize, boolean discard)

getBufferPool

public static BufferPool getBufferPool()

returnBuffer

public void returnBuffer(XByteBuffer buffer)
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.