Home / Function/ tryClose() — netty Function Reference

tryClose() — netty Function Reference

Architecture documentation for the tryClose() function in LocalChannel.java from the netty codebase.

Function java Buffer Telemetry calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  7f95a1bb_b49a_748e_2757_d753b7bb2505["tryClose()"]
  81a44f54_ab3c_5f8b_4522_05c91e5f8eb8["LocalChannel"]
  7f95a1bb_b49a_748e_2757_d753b7bb2505 -->|defined in| 81a44f54_ab3c_5f8b_4522_05c91e5f8eb8
  f1b1c04a_89d4_cfdf_491a_2834d7b50724["doClose()"]
  f1b1c04a_89d4_cfdf_491a_2834d7b50724 -->|calls| 7f95a1bb_b49a_748e_2757_d753b7bb2505
  19db0fc8_1524_a49b_2c8e_8b165b94bc06["close()"]
  7f95a1bb_b49a_748e_2757_d753b7bb2505 -->|calls| 19db0fc8_1524_a49b_2c8e_8b165b94bc06
  67917219_8f92_90b6_97f7_b6c689224093["releaseInboundBuffers()"]
  7f95a1bb_b49a_748e_2757_d753b7bb2505 -->|calls| 67917219_8f92_90b6_97f7_b6c689224093
  style 7f95a1bb_b49a_748e_2757_d753b7bb2505 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/local/LocalChannel.java lines 291–297

    private void tryClose(boolean isActive) {
        if (isActive) {
            unsafe().close(unsafe().voidPromise());
        } else {
            releaseInboundBuffers();
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does tryClose() do?
tryClose() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/local/LocalChannel.java.
Where is tryClose() defined?
tryClose() is defined in transport/src/main/java/io/netty/channel/local/LocalChannel.java at line 291.
What does tryClose() call?
tryClose() calls 2 function(s): close, releaseInboundBuffers.
What calls tryClose()?
tryClose() is called by 1 function(s): doClose.

Analyze Your Own Codebase

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

Try Supermodel Free