Top Description Fields Constructors Methods
io.vertx.core.buffer.impl

public final Class PartialPooledByteBufAllocator

extends Object
implements ByteBufAllocator
Class Inheritance
All Implemented Interfaces
io.netty.buffer.ByteBufAllocator
Imports
io.netty.buffer.*

A io.netty.buffer.ByteBufAllocator which is partial pooled. Which means only direct io.netty.buffer.ByteBufs are pooled. The rest is unpooled.
Author
Norman Maurer

Field Summary

Modifier and TypeField and Description
public static final PartialPooledByteBufAllocator
INSTANCE

The shared allocator instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ByteBuf
public ByteBuf
buffer(int initialCapacity)

Implements io.netty.buffer.ByteBufAllocator.buffer.

Allocate a ByteBuf with the given initial capacity.

public ByteBuf
buffer(int initialCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.buffer.

Allocate a ByteBuf with the given initial capacity and the given maximal capacity.

public int
calculateNewCapacity(int minNewCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.calculateNewCapacity.

Calculate the new capacity of a ByteBuf that is used when a ByteBuf needs to expand by the minNewCapacity with maxCapacity as upper-bound.

public CompositeByteBuf
public CompositeByteBuf
compositeBuffer(int maxNumComponents)

Implements io.netty.buffer.ByteBufAllocator.compositeBuffer.

Allocate a CompositeByteBuf with the given maximum number of components that can be stored in it.

public CompositeByteBuf
public CompositeByteBuf
compositeDirectBuffer(int maxNumComponents)

Implements io.netty.buffer.ByteBufAllocator.compositeDirectBuffer.

Allocate a direct CompositeByteBuf with the given maximum number of components that can be stored in it.

public CompositeByteBuf
public CompositeByteBuf
compositeHeapBuffer(int maxNumComponents)

Implements io.netty.buffer.ByteBufAllocator.compositeHeapBuffer.

Allocate a heap CompositeByteBuf with the given maximum number of components that can be stored in it.

public ByteBuf
public ByteBuf
directBuffer(int initialCapacity)

Implements io.netty.buffer.ByteBufAllocator.directBuffer.

Allocate a direct ByteBuf with the given initial capacity.

public ByteBuf
directBuffer(int initialCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.directBuffer.

Allocate a direct ByteBuf with the given initial capacity and the given maximal capacity.

public ByteBuf
public ByteBuf
heapBuffer(int initialCapacity)

Implements io.netty.buffer.ByteBufAllocator.heapBuffer.

Allocate a heap ByteBuf with the given initial capacity.

public ByteBuf
heapBuffer(int initialCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.heapBuffer.

Allocate a heap ByteBuf with the given initial capacity and the given maximal capacity.

public ByteBuf
ioBuffer()

Implements io.netty.buffer.ByteBufAllocator.ioBuffer.

Allocate a ByteBuf, preferably a direct buffer which is suitable for I/O.

public ByteBuf
ioBuffer(int initialCapacity)

Implements io.netty.buffer.ByteBufAllocator.ioBuffer.

Allocate a ByteBuf, preferably a direct buffer which is suitable for I/O.

public ByteBuf
ioBuffer(int initialCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.ioBuffer.

Allocate a ByteBuf, preferably a direct buffer which is suitable for I/O.

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final PartialPooledByteBufAllocator INSTANCE

The shared allocator instance.

Constructor Detail

PartialPooledByteBufAllocatorback to summary
private PartialPooledByteBufAllocator()

Method Detail

bufferback to summary
public ByteBuf buffer()

Implements io.netty.buffer.ByteBufAllocator.buffer.

Doc from io.netty.buffer.ByteBufAllocator.buffer.

Allocate a ByteBuf. If it is a direct or heap buffer depends on the actual implementation.

Annotations
@Override
bufferback to summary
public ByteBuf buffer(int initialCapacity)

Implements io.netty.buffer.ByteBufAllocator.buffer.

Doc from io.netty.buffer.ByteBufAllocator.buffer.

Allocate a ByteBuf with the given initial capacity. If it is a direct or heap buffer depends on the actual implementation.

Annotations
@Override
bufferback to summary
public ByteBuf buffer(int initialCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.buffer.

Doc from io.netty.buffer.ByteBufAllocator.buffer.

Allocate a ByteBuf with the given initial capacity and the given maximal capacity. If it is a direct or heap buffer depends on the actual implementation.

Annotations
@Override
calculateNewCapacityback to summary
public int calculateNewCapacity(int minNewCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.calculateNewCapacity.

Doc from io.netty.buffer.ByteBufAllocator.calculateNewCapacity.

Calculate the new capacity of a ByteBuf that is used when a ByteBuf needs to expand by the minNewCapacity with maxCapacity as upper-bound.

Annotations
@Override
compositeBufferback to summary
public CompositeByteBuf compositeBuffer()

Implements io.netty.buffer.ByteBufAllocator.compositeBuffer.

Doc from io.netty.buffer.ByteBufAllocator.compositeBuffer.

Allocate a CompositeByteBuf. If it is a direct or heap buffer depends on the actual implementation.

Annotations
@Override
compositeBufferback to summary
public CompositeByteBuf compositeBuffer(int maxNumComponents)

Implements io.netty.buffer.ByteBufAllocator.compositeBuffer.

Doc from io.netty.buffer.ByteBufAllocator.compositeBuffer.

Allocate a CompositeByteBuf with the given maximum number of components that can be stored in it. If it is a direct or heap buffer depends on the actual implementation.

Annotations
@Override
compositeDirectBufferback to summary
public CompositeByteBuf compositeDirectBuffer()

Implements io.netty.buffer.ByteBufAllocator.compositeDirectBuffer.

Doc from io.netty.buffer.ByteBufAllocator.compositeDirectBuffer.

Allocate a direct CompositeByteBuf.

Annotations
@Override
compositeDirectBufferback to summary
public CompositeByteBuf compositeDirectBuffer(int maxNumComponents)

Implements io.netty.buffer.ByteBufAllocator.compositeDirectBuffer.

Doc from io.netty.buffer.ByteBufAllocator.compositeDirectBuffer.

Allocate a direct CompositeByteBuf with the given maximum number of components that can be stored in it.

Annotations
@Override
compositeHeapBufferback to summary
public CompositeByteBuf compositeHeapBuffer()

Implements io.netty.buffer.ByteBufAllocator.compositeHeapBuffer.

Doc from io.netty.buffer.ByteBufAllocator.compositeHeapBuffer.

Allocate a heap CompositeByteBuf.

Annotations
@Override
compositeHeapBufferback to summary
public CompositeByteBuf compositeHeapBuffer(int maxNumComponents)

Implements io.netty.buffer.ByteBufAllocator.compositeHeapBuffer.

Doc from io.netty.buffer.ByteBufAllocator.compositeHeapBuffer.

Allocate a heap CompositeByteBuf with the given maximum number of components that can be stored in it.

Annotations
@Override
directBufferback to summary
public ByteBuf directBuffer()

Implements io.netty.buffer.ByteBufAllocator.directBuffer.

Doc from io.netty.buffer.ByteBufAllocator.directBuffer.

Allocate a direct ByteBuf.

Annotations
@Override
directBufferback to summary
public ByteBuf directBuffer(int initialCapacity)

Implements io.netty.buffer.ByteBufAllocator.directBuffer.

Doc from io.netty.buffer.ByteBufAllocator.directBuffer.

Allocate a direct ByteBuf with the given initial capacity.

Annotations
@Override
directBufferback to summary
public ByteBuf directBuffer(int initialCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.directBuffer.

Doc from io.netty.buffer.ByteBufAllocator.directBuffer.

Allocate a direct ByteBuf with the given initial capacity and the given maximal capacity.

Annotations
@Override
heapBufferback to summary
public ByteBuf heapBuffer()

Implements io.netty.buffer.ByteBufAllocator.heapBuffer.

Doc from io.netty.buffer.ByteBufAllocator.heapBuffer.

Allocate a heap ByteBuf.

Annotations
@Override
heapBufferback to summary
public ByteBuf heapBuffer(int initialCapacity)

Implements io.netty.buffer.ByteBufAllocator.heapBuffer.

Doc from io.netty.buffer.ByteBufAllocator.heapBuffer.

Allocate a heap ByteBuf with the given initial capacity.

Annotations
@Override
heapBufferback to summary
public ByteBuf heapBuffer(int initialCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.heapBuffer.

Doc from io.netty.buffer.ByteBufAllocator.heapBuffer.

Allocate a heap ByteBuf with the given initial capacity and the given maximal capacity.

Annotations
@Override
ioBufferback to summary
public ByteBuf ioBuffer()

Implements io.netty.buffer.ByteBufAllocator.ioBuffer.

Doc from io.netty.buffer.ByteBufAllocator.ioBuffer.

Allocate a ByteBuf, preferably a direct buffer which is suitable for I/O.

Annotations
@Override
ioBufferback to summary
public ByteBuf ioBuffer(int initialCapacity)

Implements io.netty.buffer.ByteBufAllocator.ioBuffer.

Doc from io.netty.buffer.ByteBufAllocator.ioBuffer.

Allocate a ByteBuf, preferably a direct buffer which is suitable for I/O.

Annotations
@Override
ioBufferback to summary
public ByteBuf ioBuffer(int initialCapacity, int maxCapacity)

Implements io.netty.buffer.ByteBufAllocator.ioBuffer.

Doc from io.netty.buffer.ByteBufAllocator.ioBuffer.

Allocate a ByteBuf, preferably a direct buffer which is suitable for I/O.

Annotations
@Override
isDirectBufferPooledback to summary
public boolean isDirectBufferPooled()

Implements io.netty.buffer.ByteBufAllocator.isDirectBufferPooled.

Doc from io.netty.buffer.ByteBufAllocator.isDirectBufferPooled.

Returns true if direct ByteBuf's are pooled

Annotations
@Override