Home / Function/ destroy() — netty Function Reference

destroy() — netty Function Reference

Architecture documentation for the destroy() function in HttpPostStandardRequestDecoder.java from the netty codebase.

Function java ProtocolCodecs HTTP calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  3b9ba194_db04_bd5a_e5ff_ead83e3c051b["destroy()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb["HttpPostStandardRequestDecoder"]
  3b9ba194_db04_bd5a_e5ff_ead83e3c051b -->|defined in| 9a5a01b4_1d50_03ee_e135_2164d7bf32cb
  78a1a8a1_cec0_c0b0_5b7d_9c2845c750f8["HttpPostStandardRequestDecoder()"]
  78a1a8a1_cec0_c0b0_5b7d_9c2845c750f8 -->|calls| 3b9ba194_db04_bd5a_e5ff_ead83e3c051b
  779dfbe5_3b58_68f8_c420_4de173ba4938["cleanFiles()"]
  3b9ba194_db04_bd5a_e5ff_ead83e3c051b -->|calls| 779dfbe5_3b58_68f8_c420_4de173ba4938
  style 3b9ba194_db04_bd5a_e5ff_ead83e3c051b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoder.java lines 624–642

    @Override
    public void destroy() {
        // Release all data items, including those not yet pulled, only file based items
        cleanFiles();
        // Clean Memory based data
        for (InterfaceHttpData httpData : bodyListHttpData) {
            // Might have been already released by the user
            if (httpData.refCnt() > 0) {
                httpData.release();
            }
        }

        destroyed = true;

        if (undecodedChunk != null && undecodedChunk.refCnt() > 0) {
            undecodedChunk.release();
            undecodedChunk = null;
        }
    }

Subdomains

Calls

Frequently Asked Questions

What does destroy() do?
destroy() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoder.java.
Where is destroy() defined?
destroy() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoder.java at line 624.
What does destroy() call?
destroy() calls 1 function(s): cleanFiles.
What calls destroy()?
destroy() is called by 1 function(s): HttpPostStandardRequestDecoder.

Analyze Your Own Codebase

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

Try Supermodel Free