
public final class ByteBufferSlicePool extends java.lang.Object implements Pool<java.nio.ByteBuffer>
| Constructor and Description |
|---|
ByteBufferSlicePool(BufferAllocator<java.nio.ByteBuffer> allocator,
int bufferSize,
int maxRegionSize)
Construct a new instance.
|
ByteBufferSlicePool(int bufferSize,
int maxRegionSize)
Construct a new instance, using a direct buffer allocator.
|
public ByteBufferSlicePool(BufferAllocator<java.nio.ByteBuffer> allocator, int bufferSize, int maxRegionSize)
allocator - the buffer allocator to usebufferSize - the size of each buffermaxRegionSize - the maximum region size for each backing bufferpublic ByteBufferSlicePool(int bufferSize,
int maxRegionSize)
bufferSize - the size of each buffermaxRegionSize - the maximum region size for each backing bufferCopyright © 2010 JBoss, a division of Red Hat, Inc.