- java.lang.Object
-
- io.netty5.channel.DefaultMaxMessagesRecvBufferAllocator
-
- io.netty5.channel.FixedRecvBufferAllocator
-
- All Implemented Interfaces:
MaxMessagesRecvBufferAllocator
,RecvBufferAllocator
public class FixedRecvBufferAllocator extends DefaultMaxMessagesRecvBufferAllocator
TheRecvBufferAllocator
that always yields the same buffer size prediction. This predictor ignores the feed back from the I/O thread.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty5.channel.DefaultMaxMessagesRecvBufferAllocator
DefaultMaxMessagesRecvBufferAllocator.MaxMessageHandle
-
Nested classes/interfaces inherited from interface io.netty5.channel.RecvBufferAllocator
RecvBufferAllocator.Handle
-
-
Constructor Summary
Constructors Constructor Description FixedRecvBufferAllocator(int bufferSize)
Creates a new predictor that always returns the same prediction of the specified buffer size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecvBufferAllocator.Handle
newHandle()
Creates a new handle.-
Methods inherited from class io.netty5.channel.DefaultMaxMessagesRecvBufferAllocator
maxMessagesPerRead, maxMessagesPerRead
-
-
-
-
Method Detail
-
newHandle
public RecvBufferAllocator.Handle newHandle()
Description copied from interface:RecvBufferAllocator
Creates a new handle. The handle provides the actual operations and keeps the internal information which is required for predicting an optimal buffer capacity.
-
-