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