MaxBytesRecvByteBufAllocator Type — netty Architecture
Architecture documentation for the MaxBytesRecvByteBufAllocator type/interface in MaxBytesRecvByteBufAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5d373254_7125_7ef8_66c8_48d541d34c37["MaxBytesRecvByteBufAllocator"] 1bf925a2_0388_069f_b95f_f5c98c0a8141["MaxBytesRecvByteBufAllocator.java"] 5d373254_7125_7ef8_66c8_48d541d34c37 -->|defined in| 1bf925a2_0388_069f_b95f_f5c98c0a8141 style 5d373254_7125_7ef8_66c8_48d541d34c37 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/MaxBytesRecvByteBufAllocator.java lines 24–65
public interface MaxBytesRecvByteBufAllocator extends RecvByteBufAllocator {
/**
* Returns the maximum number of bytes 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 bytes.
*/
int maxBytesPerRead();
/**
* Sets the maximum number of bytes to read per read loop.
* If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
*/
MaxBytesRecvByteBufAllocator maxBytesPerRead(int maxBytesPerRead);
/**
* Returns the maximum number of bytes to read per individual read operation.
* 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 bytes.
*/
int maxBytesPerIndividualRead();
/**
* Sets the maximum number of bytes to read per individual read operation.
* If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
*/
MaxBytesRecvByteBufAllocator maxBytesPerIndividualRead(int maxBytesPerIndividualRead);
/**
* Atomic way to get the maximum number of bytes to read for a read loop and per individual read operation.
* If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
* @return The Key is from {@link #maxBytesPerRead()}. The Value is from {@link #maxBytesPerIndividualRead()}
*/
Entry<Integer, Integer> maxBytesPerReadPair();
/**
* Sets the maximum number of bytes to read for a read loop and per individual read operation.
* If this value is greater than 1, an event loop might attempt to read multiple times to procure bytes.
* @param maxBytesPerRead see {@link #maxBytesPerRead(int)}
* @param maxBytesPerIndividualRead see {@link #maxBytesPerIndividualRead(int)}
*/
MaxBytesRecvByteBufAllocator maxBytesPerReadPair(int maxBytesPerRead, int maxBytesPerIndividualRead);
}
Source
Frequently Asked Questions
What is the MaxBytesRecvByteBufAllocator type?
MaxBytesRecvByteBufAllocator is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/MaxBytesRecvByteBufAllocator.java.
Where is MaxBytesRecvByteBufAllocator defined?
MaxBytesRecvByteBufAllocator is defined in transport/src/main/java/io/netty/channel/MaxBytesRecvByteBufAllocator.java at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free