public class ByteBufferPool extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
demand(int capacity) |
ByteBuffer |
demandAndClean(int capacity) |
static ByteBufferPool |
instance() |
void |
release(ByteBuffer buffer) |
public ByteBuffer demandAndClean(int capacity)
public ByteBuffer demand(int capacity)
public void release(ByteBuffer buffer)
public static ByteBufferPool instance()
Copyright © 2000–2022 EPAM Systems. All rights reserved.