public class LeaksTrackingByteBufAllocator extends Object implements ByteBufAllocator
DEFAULT| Modifier and Type | Method and Description |
|---|---|
LeaksTrackingByteBufAllocator |
assertHasNoLeaks() |
ByteBuf |
buffer() |
ByteBuf |
buffer(int initialCapacity) |
ByteBuf |
buffer(int initialCapacity,
int maxCapacity) |
int |
calculateNewCapacity(int minNewCapacity,
int maxCapacity) |
CompositeByteBuf |
compositeBuffer() |
CompositeByteBuf |
compositeBuffer(int maxNumComponents) |
CompositeByteBuf |
compositeDirectBuffer() |
CompositeByteBuf |
compositeDirectBuffer(int maxNumComponents) |
CompositeByteBuf |
compositeHeapBuffer() |
CompositeByteBuf |
compositeHeapBuffer(int maxNumComponents) |
ByteBuf |
directBuffer() |
ByteBuf |
directBuffer(int initialCapacity) |
ByteBuf |
directBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
heapBuffer() |
ByteBuf |
heapBuffer(int initialCapacity) |
ByteBuf |
heapBuffer(int initialCapacity,
int maxCapacity) |
static LeaksTrackingByteBufAllocator |
instrument(ByteBufAllocator allocator)
Allows to instrument any given the instance of ByteBufAllocator
|
static LeaksTrackingByteBufAllocator |
instrument(ByteBufAllocator allocator,
Duration awaitZeroRefCntDuration,
String tag)
Allows to instrument any given the instance of ByteBufAllocator
|
ByteBuf |
ioBuffer() |
ByteBuf |
ioBuffer(int initialCapacity) |
ByteBuf |
ioBuffer(int initialCapacity,
int maxCapacity) |
boolean |
isDirectBufferPooled() |
public static LeaksTrackingByteBufAllocator instrument(ByteBufAllocator allocator)
allocator - public static LeaksTrackingByteBufAllocator instrument(ByteBufAllocator allocator, Duration awaitZeroRefCntDuration, String tag)
allocator - public LeaksTrackingByteBufAllocator assertHasNoLeaks()
public ByteBuf buffer()
buffer in interface ByteBufAllocatorpublic ByteBuf buffer(int initialCapacity)
buffer in interface ByteBufAllocatorpublic ByteBuf buffer(int initialCapacity, int maxCapacity)
buffer in interface ByteBufAllocatorpublic ByteBuf ioBuffer()
ioBuffer in interface ByteBufAllocatorpublic ByteBuf ioBuffer(int initialCapacity)
ioBuffer in interface ByteBufAllocatorpublic ByteBuf ioBuffer(int initialCapacity, int maxCapacity)
ioBuffer in interface ByteBufAllocatorpublic ByteBuf heapBuffer()
heapBuffer in interface ByteBufAllocatorpublic ByteBuf heapBuffer(int initialCapacity)
heapBuffer in interface ByteBufAllocatorpublic ByteBuf heapBuffer(int initialCapacity, int maxCapacity)
heapBuffer in interface ByteBufAllocatorpublic ByteBuf directBuffer()
directBuffer in interface ByteBufAllocatorpublic ByteBuf directBuffer(int initialCapacity)
directBuffer in interface ByteBufAllocatorpublic ByteBuf directBuffer(int initialCapacity, int maxCapacity)
directBuffer in interface ByteBufAllocatorpublic CompositeByteBuf compositeBuffer()
compositeBuffer in interface ByteBufAllocatorpublic CompositeByteBuf compositeBuffer(int maxNumComponents)
compositeBuffer in interface ByteBufAllocatorpublic CompositeByteBuf compositeHeapBuffer()
compositeHeapBuffer in interface ByteBufAllocatorpublic CompositeByteBuf compositeHeapBuffer(int maxNumComponents)
compositeHeapBuffer in interface ByteBufAllocatorpublic CompositeByteBuf compositeDirectBuffer()
compositeDirectBuffer in interface ByteBufAllocatorpublic CompositeByteBuf compositeDirectBuffer(int maxNumComponents)
compositeDirectBuffer in interface ByteBufAllocatorpublic boolean isDirectBufferPooled()
isDirectBufferPooled in interface ByteBufAllocatorpublic int calculateNewCapacity(int minNewCapacity,
int maxCapacity)
calculateNewCapacity in interface ByteBufAllocator