Class IoUringBufferRingConfig.Builder
java.lang.Object
io.netty.channel.uring.IoUringBufferRingConfig.Builder
- Enclosing class:
IoUringBufferRingConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocator(IoUringBufferRingAllocator allocator) Set theIoUringBufferRingAllocatorto use to allocateByteBufs.batchAllocation(boolean batchAllocation) Set allocation strategy that is used to allocateByteBufs.batchSize(int batchSize) Set the size of the batch on how many buffers are added everytime we need to expand the buffer ring.bufferGroupId(short bgId) Set the buffer group id to use.bufferRingSize(short bufferRingSize) Set the size of the ring.build()Create a newIoUringBufferRingConfig.incremental(boolean incremental) Set if incremental mode should be used for the buffer ring.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bufferGroupId
Set the buffer group id to use.- Parameters:
bgId- The buffer group id to use.- Returns:
- This builder.
-
bufferRingSize
Set the size of the ring.- Parameters:
bufferRingSize- The size of the ring.- Returns:
- This builder.
-
batchSize
Set the size of the batch on how many buffers are added everytime we need to expand the buffer ring.- Parameters:
batchSize- The batch size.- Returns:
- This builder.
-
allocator
Set theIoUringBufferRingAllocatorto use to allocateByteBufs.- Parameters:
allocator- The allocator.
-
batchAllocation
-
incremental
Set if incremental mode should be used for the buffer ring.- Parameters:
incremental-trueif incremental mode is used,falseotherwise.- Returns:
- This builder.
-
build
-