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, toString
public boolean isDirectBufferPooled()
protected io.netty.buffer.ByteBuf newHeapBuffer(int minCapacity, int maxCapacity)
newHeapBuffer
in class io.netty.buffer.AbstractByteBufAllocator
protected io.netty.buffer.ByteBuf newDirectBuffer(int minCapacity, int maxCapacity)
newDirectBuffer
in class io.netty.buffer.AbstractByteBufAllocator
public long usedSizeInBytes()
Copyright © 2009-2021 The Apache Software Foundation