lastBytesRead() — netty Function Reference
Architecture documentation for the lastBytesRead() function in AdaptiveRecvByteBufAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a7b43344_4530_5015_2e35_551503de9c6e["lastBytesRead()"] ad61c305_adbf_af4c_dc56_2c894bce8773["HandleImpl"] a7b43344_4530_5015_2e35_551503de9c6e -->|defined in| ad61c305_adbf_af4c_dc56_2c894bce8773 style a7b43344_4530_5015_2e35_551503de9c6e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/AdaptiveRecvByteBufAllocator.java lines 52–62
@Override
public void lastBytesRead(int bytes) {
// If we read as much as we asked for we should check if we need to ramp up the size of our next guess.
// This helps adjust more quickly when large amounts of data is pending and can avoid going back to
// the selector to check for more data. Going back to the selector can add significant latency for large
// data transfers.
if (bytes == attemptedBytesRead()) {
calculator.record(bytes);
}
super.lastBytesRead(bytes);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does lastBytesRead() do?
lastBytesRead() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/AdaptiveRecvByteBufAllocator.java.
Where is lastBytesRead() defined?
lastBytesRead() is defined in transport/src/main/java/io/netty/channel/AdaptiveRecvByteBufAllocator.java at line 52.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free