com.kenai.jaffl.util
Class MultiBufferPool
java.lang.Object
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 |
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 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.