Class NettyBufferPool
- java.lang.Object
-
- org.apache.flink.queryablestate.network.NettyBufferPool
-
- All Implemented Interfaces:
org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
public class NettyBufferPool extends Object implements org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
Wrapper around Netty'sPooledByteBufAllocatorwith strict control over the number of created arenas.
-
-
Constructor Summary
Constructors Constructor Description NettyBufferPool(int numberOfArenas)Creates Netty's buffer pool with the specified number of direct arenas.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufbuffer()org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufbuffer(int initialCapacity)org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufbuffer(int initialCapacity, int maxCapacity)intcalculateNewCapacity(int minNewCapacity, int maxCapacity)org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBufcompositeBuffer()org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBufcompositeBuffer(int maxNumComponents)org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBufcompositeDirectBuffer()org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBufcompositeDirectBuffer(int maxNumComponents)org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBufcompositeHeapBuffer()org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBufcompositeHeapBuffer(int maxNumComponents)org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufdirectBuffer()org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufdirectBuffer(int initialCapacity)org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufdirectBuffer(int initialCapacity, int maxCapacity)org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufheapBuffer()org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufheapBuffer(int initialCapacity)org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufheapBuffer(int initialCapacity, int maxCapacity)org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufioBuffer()org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufioBuffer(int initialCapacity)org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufioBuffer(int initialCapacity, int maxCapacity)booleanisDirectBufferPooled()
-
-
-
Method Detail
-
buffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf buffer()
- Specified by:
bufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
buffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf buffer(int initialCapacity)
- Specified by:
bufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
buffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf buffer(int initialCapacity, int maxCapacity)- Specified by:
bufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
ioBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf ioBuffer()
- Specified by:
ioBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
ioBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf ioBuffer(int initialCapacity)
- Specified by:
ioBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
ioBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf ioBuffer(int initialCapacity, int maxCapacity)- Specified by:
ioBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
heapBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf heapBuffer()
- Specified by:
heapBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
heapBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf heapBuffer(int initialCapacity)
- Specified by:
heapBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
heapBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf heapBuffer(int initialCapacity, int maxCapacity)- Specified by:
heapBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
directBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf directBuffer()
- Specified by:
directBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
directBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf directBuffer(int initialCapacity)
- Specified by:
directBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
directBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf directBuffer(int initialCapacity, int maxCapacity)- Specified by:
directBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
compositeBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBuf compositeBuffer()
- Specified by:
compositeBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
compositeBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBuf compositeBuffer(int maxNumComponents)
- Specified by:
compositeBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
compositeHeapBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBuf compositeHeapBuffer()
- Specified by:
compositeHeapBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
compositeHeapBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBuf compositeHeapBuffer(int maxNumComponents)
- Specified by:
compositeHeapBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
compositeDirectBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBuf compositeDirectBuffer()
- Specified by:
compositeDirectBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
compositeDirectBuffer
public org.apache.flink.shaded.netty4.io.netty.buffer.CompositeByteBuf compositeDirectBuffer(int maxNumComponents)
- Specified by:
compositeDirectBufferin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
isDirectBufferPooled
public boolean isDirectBufferPooled()
- Specified by:
isDirectBufferPooledin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
calculateNewCapacity
public int calculateNewCapacity(int minNewCapacity, int maxCapacity)- Specified by:
calculateNewCapacityin interfaceorg.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator
-
-