Home / Function/ close() — netty Function Reference

close() — netty Function Reference

Architecture documentation for the close() function in PcapWriteHandler.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  5c216ebb_cca2_4b62_0ccb_54f1456bc752["close()"]
  59f0289b_ecfd_de3c_3397_4cf08e2047d1["PcapWriteHandler"]
  5c216ebb_cca2_4b62_0ccb_54f1456bc752 -->|defined in| 59f0289b_ecfd_de3c_3397_4cf08e2047d1
  83e8cd99_fb62_b9e8_70a4_3ee322e6c838["handlerRemoved()"]
  83e8cd99_fb62_b9e8_70a4_3ee322e6c838 -->|calls| 5c216ebb_cca2_4b62_0ccb_54f1456bc752
  8bb104b3_dbc0_68f9_712f_44217e20e914["exceptionCaught()"]
  8bb104b3_dbc0_68f9_712f_44217e20e914 -->|calls| 5c216ebb_cca2_4b62_0ccb_54f1456bc752
  8825312b_8c52_5ece_b828_64cd89c66a92["PcapWriter()"]
  5c216ebb_cca2_4b62_0ccb_54f1456bc752 -->|calls| 8825312b_8c52_5ece_b828_64cd89c66a92
  0aa77c20_0cfd_2769_85d1_01f57e69a048["markClosed()"]
  5c216ebb_cca2_4b62_0ccb_54f1456bc752 -->|calls| 0aa77c20_0cfd_2769_85d1_01f57e69a048
  style 5c216ebb_cca2_4b62_0ccb_54f1456bc752 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/pcap/PcapWriteHandler.java lines 784–797

    @Override
    public void close() throws IOException {
        if (state.get() == State.CLOSED) {
            logger.debug("PcapWriterHandler is already closed");
        } else {
            // If close is called prematurely, create writer to close output stream
            if (pCapWriter == null) {
                pCapWriter = new PcapWriter(this);
            }
            pCapWriter.close();
            markClosed();
            logger.debug("PcapWriterHandler is now closed");
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does close() do?
close() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/pcap/PcapWriteHandler.java.
Where is close() defined?
close() is defined in handler/src/main/java/io/netty/handler/pcap/PcapWriteHandler.java at line 784.
What does close() call?
close() calls 2 function(s): PcapWriter, markClosed.
What calls close()?
close() is called by 2 function(s): exceptionCaught, handlerRemoved.

Analyze Your Own Codebase

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

Try Supermodel Free