public abstract class PooledAllocator extends Object implements BufferAllocator
| Modifier and Type | Method and Description |
|---|---|
Buffer |
allocate()
Allocates a dynamic capacity buffer.
|
Buffer |
allocate(long capacity)
Allocates a dynamic capacity buffer with the given initial capacity.
|
Buffer |
allocate(long initialCapacity,
long maxCapacity)
Allocates a new buffer.
|
public Buffer allocate()
BufferAllocatorallocate in interface BufferAllocatorpublic Buffer allocate(long capacity)
BufferAllocatorallocate in interface BufferAllocatorcapacity - The initial buffer capacity.public Buffer allocate(long initialCapacity, long maxCapacity)
BufferAllocatorallocate in interface BufferAllocatorinitialCapacity - The initial buffer capacity.maxCapacity - The maximum buffer capacity.Copyright © 2013–2015. All rights reserved.