UnpooledByteBufAllocator

Simplistic {@link ByteBufAllocator} implementation that does not pool anything.

Constructors

this
this(bool preferDirect)

Create a new instance which uses leak-detection for direct buffers.

this
this(bool preferDirect, bool disableLeakDetector)

Create a new instance

this
this(bool preferDirect, bool disableLeakDetector, bool tryNoCleaner)

Create a new instance

Members

Functions

compositeDirectBuffer
CompositeByteBuf compositeDirectBuffer(int maxNumComponents)
Undocumented in source. Be warned that the author may not have intended to support it.
compositeHeapBuffer
CompositeByteBuf compositeHeapBuffer(int maxNumComponents)
Undocumented in source. Be warned that the author may not have intended to support it.
decrementDirect
void decrementDirect(int amount)
Undocumented in source. Be warned that the author may not have intended to support it.
decrementHeap
void decrementHeap(int amount)
Undocumented in source. Be warned that the author may not have intended to support it.
incrementDirect
void incrementDirect(int amount)
Undocumented in source. Be warned that the author may not have intended to support it.
incrementHeap
void incrementHeap(int amount)
Undocumented in source. Be warned that the author may not have intended to support it.
isDirectBufferPooled
bool isDirectBufferPooled()
Undocumented in source. Be warned that the author may not have intended to support it.
newDirectBuffer
ByteBuf newDirectBuffer(int initialCapacity, int maxCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
newHeapBuffer
ByteBuf newHeapBuffer(int initialCapacity, int maxCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

DEFAULT
UnpooledByteBufAllocator DEFAULT()

Default instance which uses leak-detection for direct buffers.

Inherited Members

From AbstractByteBufAllocator

DEFAULT_INITIAL_CAPACITY
enum int DEFAULT_INITIAL_CAPACITY;
Undocumented in source.
DEFAULT_MAX_CAPACITY
enum int DEFAULT_MAX_CAPACITY;
Undocumented in source.
DEFAULT_MAX_COMPONENTS
enum int DEFAULT_MAX_COMPONENTS;
Undocumented in source.
CALCULATE_THRESHOLD
enum int CALCULATE_THRESHOLD;
Undocumented in source.
buffer
ByteBuf buffer()
Undocumented in source. Be warned that the author may not have intended to support it.
buffer
ByteBuf buffer(int initialCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
buffer
ByteBuf buffer(int initialCapacity, int maxCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
ioBuffer
ByteBuf ioBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
ioBuffer
ByteBuf ioBuffer(int initialCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
ioBuffer
ByteBuf ioBuffer(int initialCapacity, int maxCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
heapBuffer
ByteBuf heapBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
heapBuffer
ByteBuf heapBuffer(int initialCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
heapBuffer
ByteBuf heapBuffer(int initialCapacity, int maxCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
directBuffer
ByteBuf directBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
directBuffer
ByteBuf directBuffer(int initialCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
directBuffer
ByteBuf directBuffer(int initialCapacity, int maxCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
compositeBuffer
CompositeByteBuf compositeBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
compositeBuffer
CompositeByteBuf compositeBuffer(int maxNumComponents)
Undocumented in source. Be warned that the author may not have intended to support it.
compositeHeapBuffer
CompositeByteBuf compositeHeapBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
compositeHeapBuffer
CompositeByteBuf compositeHeapBuffer(int maxNumComponents)
Undocumented in source. Be warned that the author may not have intended to support it.
compositeDirectBuffer
CompositeByteBuf compositeDirectBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
compositeDirectBuffer
CompositeByteBuf compositeDirectBuffer(int maxNumComponents)
Undocumented in source. Be warned that the author may not have intended to support it.
newHeapBuffer
ByteBuf newHeapBuffer(int initialCapacity, int maxCapacity)

Create a heap {@link ByteBuf} with the given initialCapacity and maxCapacity.

newDirectBuffer
ByteBuf newDirectBuffer(int initialCapacity, int maxCapacity)

Create a direct {@link ByteBuf} with the given initialCapacity and maxCapacity.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
calculateNewCapacity
int calculateNewCapacity(int minNewCapacity, int maxCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta