calculateMaxBytesPerGatheringWrite() — netty Function Reference
Architecture documentation for the calculateMaxBytesPerGatheringWrite() function in NioDomainSocketChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 42c6a20e_6bb9_329f_aa42_defc00ee327d["calculateMaxBytesPerGatheringWrite()"] 4dc5d821_24b6_9b83_3757_53db45985196["NioDomainSocketChannelConfig"] 42c6a20e_6bb9_329f_aa42_defc00ee327d -->|defined in| 4dc5d821_24b6_9b83_3757_53db45985196 73452e42_f9ba_e55d_88b4_022ad2d7ebaf["NioDomainSocketChannelConfig()"] 73452e42_f9ba_e55d_88b4_022ad2d7ebaf -->|calls| 42c6a20e_6bb9_329f_aa42_defc00ee327d a8b84de4_ad90_1b2f_04a7_cb24145c18b3["getSendBufferSize()"] 42c6a20e_6bb9_329f_aa42_defc00ee327d -->|calls| a8b84de4_ad90_1b2f_04a7_cb24145c18b3 87d8f700_3354_bb33_af1a_b4a90e1838f3["setMaxBytesPerGatheringWrite()"] 42c6a20e_6bb9_329f_aa42_defc00ee327d -->|calls| 87d8f700_3354_bb33_af1a_b4a90e1838f3 style 42c6a20e_6bb9_329f_aa42_defc00ee327d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/socket/nio/NioDomainSocketChannel.java lines 630–636
private void calculateMaxBytesPerGatheringWrite() {
// Multiply by 2 to give some extra space in case the OS can process write data faster than we can provide.
int newSendBufferSize = getSendBufferSize() << 1;
if (newSendBufferSize > 0) {
setMaxBytesPerGatheringWrite(newSendBufferSize);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does calculateMaxBytesPerGatheringWrite() do?
calculateMaxBytesPerGatheringWrite() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/nio/NioDomainSocketChannel.java.
Where is calculateMaxBytesPerGatheringWrite() defined?
calculateMaxBytesPerGatheringWrite() is defined in transport/src/main/java/io/netty/channel/socket/nio/NioDomainSocketChannel.java at line 630.
What does calculateMaxBytesPerGatheringWrite() call?
calculateMaxBytesPerGatheringWrite() calls 2 function(s): getSendBufferSize, setMaxBytesPerGatheringWrite.
What calls calculateMaxBytesPerGatheringWrite()?
calculateMaxBytesPerGatheringWrite() is called by 1 function(s): NioDomainSocketChannelConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free