Home / Function/ calculateMaxBytesPerGatheringWrite() — netty Function Reference

calculateMaxBytesPerGatheringWrite() — netty Function Reference

Architecture documentation for the calculateMaxBytesPerGatheringWrite() function in EpollSocketChannelConfig.java from the netty codebase.

Function java Buffer Search calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  d7afae88_9352_5f3a_b0ee_9d51ff97aa30["calculateMaxBytesPerGatheringWrite()"]
  f9f9abc3_5d7e_54ea_b32a_5c493de53a1e["EpollSocketChannelConfig"]
  d7afae88_9352_5f3a_b0ee_9d51ff97aa30 -->|defined in| f9f9abc3_5d7e_54ea_b32a_5c493de53a1e
  74e2000f_050f_810e_fe57_4ff7c9bc1272["EpollSocketChannelConfig()"]
  74e2000f_050f_810e_fe57_4ff7c9bc1272 -->|calls| d7afae88_9352_5f3a_b0ee_9d51ff97aa30
  096648d1_cf6d_7d00_37e0_ec077b573eca["getSendBufferSize()"]
  d7afae88_9352_5f3a_b0ee_9d51ff97aa30 -->|calls| 096648d1_cf6d_7d00_37e0_ec077b573eca
  style d7afae88_9352_5f3a_b0ee_9d51ff97aa30 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollSocketChannelConfig.java lines 690–696

    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

Frequently Asked Questions

What does calculateMaxBytesPerGatheringWrite() do?
calculateMaxBytesPerGatheringWrite() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollSocketChannelConfig.java.
Where is calculateMaxBytesPerGatheringWrite() defined?
calculateMaxBytesPerGatheringWrite() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollSocketChannelConfig.java at line 690.
What does calculateMaxBytesPerGatheringWrite() call?
calculateMaxBytesPerGatheringWrite() calls 1 function(s): getSendBufferSize.
What calls calculateMaxBytesPerGatheringWrite()?
calculateMaxBytesPerGatheringWrite() is called by 1 function(s): EpollSocketChannelConfig.

Analyze Your Own Codebase

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

Try Supermodel Free