com.kenai.jaffl.util
Class MultiBufferPool

java.lang.Object
  extended by com.kenai.jaffl.util.MultiBufferPool
All Implemented Interfaces:
BufferPool

public class MultiBufferPool
extends Object
implements BufferPool


Constructor Summary
MultiBufferPool(int maxBufferSize, int maxItemsPerSize)
           
MultiBufferPool(int maxBufferSize, int maxItemsPerSize, boolean threadSafe)
          Creates a new instance of MultiBufferPool
 
Method Summary
 ByteBuffer get(int size)
           
 void put(ByteBuffer buf)
           
 void putAll(List<ByteBuffer> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
Specified by:
get in interface BufferPool

put

public void put(ByteBuffer buf)
Specified by:
put in interface BufferPool

putAll

public void putAll(List<ByteBuffer> list)
Specified by:
putAll in interface BufferPool


Copyright © 2011. All Rights Reserved.