public class CachedBufferAllocator extends 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 BufferAllocator
public void release(byte[] buffer)
release
in interface BufferAllocator
Copyright © 2011–2024 xerial.org. All rights reserved.