Class ServerChannelRecvByteBufAllocator
java.lang.Object
io.netty.channel.DefaultMaxMessagesRecvByteBufAllocator
io.netty.channel.ServerChannelRecvByteBufAllocator
- All Implemented Interfaces:
MaxMessagesRecvByteBufAllocator, RecvByteBufAllocator
MaxMessagesRecvByteBufAllocator implementation which should be used for ServerChannels.-
Nested Class Summary
Nested classes/interfaces inherited from class DefaultMaxMessagesRecvByteBufAllocator
DefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandleModifier and TypeClassDescriptionclassFocuses on enforcing the maximum messages per read condition forDefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle.continueReading().Nested classes/interfaces inherited from interface RecvByteBufAllocator
RecvByteBufAllocator.DelegatingHandle, RecvByteBufAllocator.ExtendedHandle, RecvByteBufAllocator.HandleModifier and TypeInterfaceDescriptionstatic classARecvByteBufAllocator.Handlewhich delegates all call to some otherRecvByteBufAllocator.Handle.static interfacestatic interfaceDeprecated. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DefaultMaxMessagesRecvByteBufAllocator
maxMessagesPerRead, maxMessagesPerRead, respectMaybeMoreData, respectMaybeMoreDataModifier and TypeMethodDescriptionintReturns the maximum number of messages to read per read loop. achannelRead()event.maxMessagesPerRead(int maxMessagesPerRead) Sets the maximum number of messages to read per read loop.final booleanGet if future instances ofRecvByteBufAllocator.newHandle()will stop reading if we think there is no more data.respectMaybeMoreData(boolean respectMaybeMoreData) Determine if future instances ofRecvByteBufAllocator.newHandle()will stop reading if we think there is no more data.
-
Constructor Details
-
ServerChannelRecvByteBufAllocator
public ServerChannelRecvByteBufAllocator()
-
-
Method Details
-
newHandle
Description copied from interface:RecvByteBufAllocatorCreates a new handle. The handle provides the actual operations and keeps the internal information which is required for predicting an optimal buffer capacity.
-
RecvByteBufAllocator.ExtendedHandle.