Home / Function/ handlerRemoved() — netty Function Reference

handlerRemoved() — netty Function Reference

Architecture documentation for the handlerRemoved() function in QuicheQuicCodec.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  aa1ee80e_2d3d_7b23_9847_8019e35536c8["handlerRemoved()"]
  2593916d_2b0e_6fcc_eac7_86416a14767c["QuicheQuicCodec"]
  aa1ee80e_2d3d_7b23_9847_8019e35536c8 -->|defined in| 2593916d_2b0e_6fcc_eac7_86416a14767c
  3b54bdee_b859_244c_cbd1_229a85331364["flushNow()"]
  aa1ee80e_2d3d_7b23_9847_8019e35536c8 -->|calls| 3b54bdee_b859_244c_cbd1_229a85331364
  style aa1ee80e_2d3d_7b23_9847_8019e35536c8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicCodec.java lines 144–173

    @Override
    public void handlerRemoved(ChannelHandlerContext ctx) {
        try {
            // Use a copy of the array as closing the channel may cause an unwritable event that could also
            // remove channels.
            for (QuicheQuicChannel ch : channels.toArray(new QuicheQuicChannel[0])) {
                ch.forceClose();
            }
            if (pendingPackets > 0) {
                flushNow(ctx);
            }
        } finally {
            channels.clear();
            connectionIdToChannel.clear();
            needsFireChannelReadComplete.clear();
            delayedRemoval.clear();

            config.free();
            if (senderSockaddrMemory != null) {
                senderSockaddrMemory.release();
            }
            if (recipientSockaddrMemory != null) {
                recipientSockaddrMemory.release();
            }
            if (headerParser != null) {
                headerParser.close();
                headerParser = null;
            }
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does handlerRemoved() do?
handlerRemoved() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicCodec.java.
Where is handlerRemoved() defined?
handlerRemoved() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicCodec.java at line 144.
What does handlerRemoved() call?
handlerRemoved() calls 1 function(s): flushNow.

Analyze Your Own Codebase

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

Try Supermodel Free