public abstract class BufferPoolAllocator
extends io.netty.buffer.AbstractByteBufAllocator
| Modifier and Type | Class and Description |
|---|---|
static class |
BufferPoolAllocator.Wrapped
A simple extension to UnpooledUnsafeDirectByteBuf that returns buffers to BufferPool on deallocate,
and permits extracting the buffer from it to take ownership and use directly.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDirectBufferPooled() |
protected io.netty.buffer.ByteBuf |
newDirectBuffer(int minCapacity,
int maxCapacity) |
protected io.netty.buffer.ByteBuf |
newHeapBuffer(int minCapacity,
int maxCapacity)
shouldn't be invoked
|
long |
usedSizeInBytes() |
buffer, buffer, buffer, calculateNewCapacity, compositeBuffer, compositeBuffer, compositeDirectBuffer, compositeDirectBuffer, compositeHeapBuffer, compositeHeapBuffer, directBuffer, directBuffer, directBuffer, heapBuffer, heapBuffer, heapBuffer, ioBuffer, ioBuffer, ioBuffer, toLeakAwareBuffer, toLeakAwareBuffer, toStringpublic boolean isDirectBufferPooled()
protected io.netty.buffer.ByteBuf newHeapBuffer(int minCapacity,
int maxCapacity)
newHeapBuffer in class io.netty.buffer.AbstractByteBufAllocatorprotected io.netty.buffer.ByteBuf newDirectBuffer(int minCapacity,
int maxCapacity)
newDirectBuffer in class io.netty.buffer.AbstractByteBufAllocatorpublic long usedSizeInBytes()
Copyright © 2009-2022 The Apache Software Foundation