public class PartialPooledByteBufAllocator extends Object implements io.netty.buffer.ByteBufAllocator
ByteBufAllocator
which is partial pooled. Which means only direct ByteBuf
s are pooled. The rest
is unpooled.Modifier and Type | Field and Description |
---|---|
static PartialPooledByteBufAllocator |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
buffer() |
io.netty.buffer.ByteBuf |
buffer(int initialCapacity) |
io.netty.buffer.ByteBuf |
buffer(int initialCapacity,
int maxCapacity) |
io.netty.buffer.CompositeByteBuf |
compositeBuffer() |
io.netty.buffer.CompositeByteBuf |
compositeBuffer(int maxNumComponents) |
io.netty.buffer.CompositeByteBuf |
compositeDirectBuffer() |
io.netty.buffer.CompositeByteBuf |
compositeDirectBuffer(int maxNumComponents) |
io.netty.buffer.CompositeByteBuf |
compositeHeapBuffer() |
io.netty.buffer.CompositeByteBuf |
compositeHeapBuffer(int maxNumComponents) |
io.netty.buffer.ByteBuf |
directBuffer() |
io.netty.buffer.ByteBuf |
directBuffer(int initialCapacity) |
io.netty.buffer.ByteBuf |
directBuffer(int initialCapacity,
int maxCapacity) |
io.netty.buffer.ByteBuf |
heapBuffer() |
io.netty.buffer.ByteBuf |
heapBuffer(int initialCapacity) |
io.netty.buffer.ByteBuf |
heapBuffer(int initialCapacity,
int maxCapacity) |
io.netty.buffer.ByteBuf |
ioBuffer() |
io.netty.buffer.ByteBuf |
ioBuffer(int initialCapacity) |
io.netty.buffer.ByteBuf |
ioBuffer(int initialCapacity,
int maxCapacity) |
boolean |
isDirectBufferPooled() |
public static final PartialPooledByteBufAllocator INSTANCE
public io.netty.buffer.ByteBuf buffer()
buffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf buffer(int initialCapacity)
buffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf buffer(int initialCapacity, int maxCapacity)
buffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf ioBuffer()
ioBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf ioBuffer(int initialCapacity)
ioBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf ioBuffer(int initialCapacity, int maxCapacity)
ioBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf heapBuffer()
heapBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf heapBuffer(int initialCapacity)
heapBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf heapBuffer(int initialCapacity, int maxCapacity)
heapBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf directBuffer()
directBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf directBuffer(int initialCapacity)
directBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.ByteBuf directBuffer(int initialCapacity, int maxCapacity)
directBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.CompositeByteBuf compositeBuffer()
compositeBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.CompositeByteBuf compositeBuffer(int maxNumComponents)
compositeBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.CompositeByteBuf compositeHeapBuffer()
compositeHeapBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.CompositeByteBuf compositeHeapBuffer(int maxNumComponents)
compositeHeapBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.CompositeByteBuf compositeDirectBuffer()
compositeDirectBuffer
in interface io.netty.buffer.ByteBufAllocator
public io.netty.buffer.CompositeByteBuf compositeDirectBuffer(int maxNumComponents)
compositeDirectBuffer
in interface io.netty.buffer.ByteBufAllocator
public boolean isDirectBufferPooled()
isDirectBufferPooled
in interface io.netty.buffer.ByteBufAllocator
Copyright © 2016 JBoss by Red Hat. All rights reserved.