Home / Function/ check() — netty Function Reference

check() — netty Function Reference

Architecture documentation for the check() function in LeakPresenceDetector.java from the netty codebase.

Function java CommonUtil Logging calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  9091c485_77ea_292e_4e8a_05c5d72a80c3["check()"]
  c3f8e874_7121_5232_86be_a0f7230a975e["LeakPresenceDetector"]
  9091c485_77ea_292e_4e8a_05c5d72a80c3 -->|defined in| c3f8e874_7121_5232_86be_a0f7230a975e
  95093f73_e143_2bf9_5d95_2adba188c280["check()"]
  95093f73_e143_2bf9_5d95_2adba188c280 -->|calls| 9091c485_77ea_292e_4e8a_05c5d72a80c3
  95093f73_e143_2bf9_5d95_2adba188c280["check()"]
  9091c485_77ea_292e_4e8a_05c5d72a80c3 -->|calls| 95093f73_e143_2bf9_5d95_2adba188c280
  style 9091c485_77ea_292e_4e8a_05c5d72a80c3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/LeakPresenceDetector.java lines 204–217

    public static void check() {
        // for LeakPresenceDetector, this is cheap.
        ResourceLeakDetector<Object> detector = ResourceLeakDetectorFactory.instance()
                .newResourceLeakDetector(Object.class);

        if (!(detector instanceof LeakPresenceDetector)) {
            throw new IllegalStateException(
                    "LeakPresenceDetector not in use. Please register it using " +
                            "-Dio.netty.customResourceLeakDetector=" + LeakPresenceDetector.class.getName());
        }

        //noinspection resource
        ((LeakPresenceDetector<Object>) detector).currentScope().check();
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does check() do?
check() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/LeakPresenceDetector.java.
Where is check() defined?
check() is defined in common/src/main/java/io/netty/util/LeakPresenceDetector.java at line 204.
What does check() call?
check() calls 1 function(s): check.
What calls check()?
check() is called by 1 function(s): check.

Analyze Your Own Codebase

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

Try Supermodel Free