Package io.netty5.channel.kqueue
Class KQueueGuessRecvBufferAllocator
- java.lang.Object
-
- io.netty5.channel.DefaultMaxMessagesRecvBufferAllocator
-
- io.netty5.channel.kqueue.KQueueGuessRecvBufferAllocator
-
- All Implemented Interfaces:
MaxMessagesRecvBufferAllocator
,RecvBufferAllocator
public final class KQueueGuessRecvBufferAllocator extends DefaultMaxMessagesRecvBufferAllocator
DefaultMaxMessagesRecvBufferAllocator
which always try to allocate buffers as big as kqueue tells us in terms of pending bytes to read.
-
-
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 KQueueGuessRecvBufferAllocator()
-
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.
-
-