com.kenai.jaffl.util
Class MultiBufferPool
java.lang.Object
com.kenai.jaffl.util.MultiBufferPool
- All Implemented Interfaces:
- BufferPool
public class MultiBufferPool
- extends java.lang.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 |
java.nio.ByteBuffer |
get(int size)
|
void |
put(java.nio.ByteBuffer buf)
|
void |
putAll(java.util.List<java.nio.ByteBuffer> list)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiBufferPool
public MultiBufferPool(int maxBufferSize,
int maxItemsPerSize,
boolean threadSafe)
- Creates a new instance of MultiBufferPool
MultiBufferPool
public MultiBufferPool(int maxBufferSize,
int maxItemsPerSize)
get
public java.nio.ByteBuffer get(int size)
- Specified by:
get
in interface BufferPool
put
public void put(java.nio.ByteBuffer buf)
- Specified by:
put
in interface BufferPool
putAll
public void putAll(java.util.List<java.nio.ByteBuffer> list)
- Specified by:
putAll
in interface BufferPool