com.kenai.jaffl.util

Class MultiBufferPool

public class MultiBufferPool extends Object implements BufferPool

Constructor Summary
MultiBufferPool(int maxBufferSize, int maxItemsPerSize, boolean threadSafe)
Creates a new instance of MultiBufferPool
MultiBufferPool(int maxBufferSize, int maxItemsPerSize)
Method Summary
ByteBufferget(int size)
voidput(ByteBuffer buf)
voidputAll(List<ByteBuffer> list)

Constructor Detail

MultiBufferPool

public MultiBufferPool(int maxBufferSize, int maxItemsPerSize, boolean threadSafe)
Creates a new instance of MultiBufferPool

MultiBufferPool

public MultiBufferPool(int maxBufferSize, int maxItemsPerSize)

Method Detail

get

public ByteBuffer get(int size)

put

public void put(ByteBuffer buf)

putAll

public void putAll(List<ByteBuffer> list)