Home / Type/ ResourceLeak Type — netty Architecture

ResourceLeak Type — netty Architecture

Architecture documentation for the ResourceLeak type/interface in ResourceLeak.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  821efc39_2cc1_a451_4730_407da9fefe5b["ResourceLeak"]
  467af322_594a_85b2_d4bc_06c771b303ef["ResourceLeak.java"]
  821efc39_2cc1_a451_4730_407da9fefe5b -->|defined in| 467af322_594a_85b2_d4bc_06c771b303ef
  style 821efc39_2cc1_a451_4730_407da9fefe5b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/ResourceLeak.java lines 22–42

@Deprecated
public interface ResourceLeak {
    /**
     * Records the caller's current stack trace so that the {@link ResourceLeakDetector} can tell where the leaked
     * resource was accessed lastly. This method is a shortcut to {@link #record(Object) record(null)}.
     */
    void record();

    /**
     * Records the caller's current stack trace and the specified additional arbitrary information
     * so that the {@link ResourceLeakDetector} can tell where the leaked resource was accessed lastly.
     */
    void record(Object hint);

    /**
     * Close the leak so that {@link ResourceLeakDetector} does not warn about leaked resources.
     *
     * @return {@code true} if called first time, {@code false} if called already
     */
    boolean close();
}

Frequently Asked Questions

What is the ResourceLeak type?
ResourceLeak is a type/interface in the netty codebase, defined in common/src/main/java/io/netty/util/ResourceLeak.java.
Where is ResourceLeak defined?
ResourceLeak is defined in common/src/main/java/io/netty/util/ResourceLeak.java at line 22.

Analyze Your Own Codebase

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

Try Supermodel Free