Home / Type/ MaxMessagesRecvByteBufAllocator Type — netty Architecture

MaxMessagesRecvByteBufAllocator Type — netty Architecture

Architecture documentation for the MaxMessagesRecvByteBufAllocator type/interface in MaxMessagesRecvByteBufAllocator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  88100558_9ff3_a4bc_aaf2_f14928afe2ac["MaxMessagesRecvByteBufAllocator"]
  e4a007f2_becf_da22_350c_87831dcfba94["MaxMessagesRecvByteBufAllocator.java"]
  88100558_9ff3_a4bc_aaf2_f14928afe2ac -->|defined in| e4a007f2_becf_da22_350c_87831dcfba94
  style 88100558_9ff3_a4bc_aaf2_f14928afe2ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/MaxMessagesRecvByteBufAllocator.java lines 22–35

public interface MaxMessagesRecvByteBufAllocator extends RecvByteBufAllocator {
    /**
     * Returns the maximum number of messages to read per read loop.
     * a {@link ChannelInboundHandler#channelRead(ChannelHandlerContext, Object) channelRead()} event.
     * If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.
     */
    int maxMessagesPerRead();

    /**
     * Sets the maximum number of messages to read per read loop.
     * If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.
     */
    MaxMessagesRecvByteBufAllocator maxMessagesPerRead(int maxMessagesPerRead);
}

Frequently Asked Questions

What is the MaxMessagesRecvByteBufAllocator type?
MaxMessagesRecvByteBufAllocator is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/MaxMessagesRecvByteBufAllocator.java.
Where is MaxMessagesRecvByteBufAllocator defined?
MaxMessagesRecvByteBufAllocator is defined in transport/src/main/java/io/netty/channel/MaxMessagesRecvByteBufAllocator.java at line 22.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free