public class CachedBufferAllocator extends java.lang.Object implements BufferAllocator
| Constructor and Description |
|---|
CachedBufferAllocator(int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
allocate(int size) |
static CachedBufferAllocator |
getAllocator(int bufferSize) |
static BufferAllocatorFactory |
getBufferAllocatorFactory() |
void |
release(byte[] buffer) |
static void |
setBufferAllocatorFactory(BufferAllocatorFactory factory) |
public static void setBufferAllocatorFactory(BufferAllocatorFactory factory)
public static BufferAllocatorFactory getBufferAllocatorFactory()
public static CachedBufferAllocator getAllocator(int bufferSize)
public byte[] allocate(int size)
allocate in interface BufferAllocatorpublic void release(byte[] buffer)
release in interface BufferAllocator