calculateMaxBytesPerGatheringWrite() — netty Function Reference
Architecture documentation for the calculateMaxBytesPerGatheringWrite() function in NioSocketChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 16aa05de_cf3a_8d2c_41cb_f991ce788b52["calculateMaxBytesPerGatheringWrite()"] 49ee103f_91db_d667_d2d0_67d050418b50["NioSocketChannelConfig"] 16aa05de_cf3a_8d2c_41cb_f991ce788b52 -->|defined in| 49ee103f_91db_d667_d2d0_67d050418b50 43430d5d_2112_e5da_aba1_9ae12a923784["NioSocketChannelConfig()"] 43430d5d_2112_e5da_aba1_9ae12a923784 -->|calls| 16aa05de_cf3a_8d2c_41cb_f991ce788b52 a45573d5_9ffc_26b4_c57e_c71e1d5aee51["setMaxBytesPerGatheringWrite()"] 16aa05de_cf3a_8d2c_41cb_f991ce788b52 -->|calls| a45573d5_9ffc_26b4_c57e_c71e1d5aee51 style 16aa05de_cf3a_8d2c_41cb_f991ce788b52 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java lines 515–521
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/NioSocketChannel.java.
Where is calculateMaxBytesPerGatheringWrite() defined?
calculateMaxBytesPerGatheringWrite() is defined in transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java at line 515.
What does calculateMaxBytesPerGatheringWrite() call?
calculateMaxBytesPerGatheringWrite() calls 1 function(s): setMaxBytesPerGatheringWrite.
What calls calculateMaxBytesPerGatheringWrite()?
calculateMaxBytesPerGatheringWrite() is called by 1 function(s): NioSocketChannelConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free