Home / Function/ handlerRemoved() — netty Function Reference

handlerRemoved() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ac3a6375_8af0_d92c_2aa8_38d2de6af30d["handlerRemoved()"]
  97ab035f_81f5_b0bc_4aa5_364edb78b510["BufferedTestHandler"]
  ac3a6375_8af0_d92c_2aa8_38d2de6af30d -->|defined in| 97ab035f_81f5_b0bc_4aa5_364edb78b510
  81474b82_2ee1_c89a_4632_f7e06e5f8c52["flush()"]
  ac3a6375_8af0_d92c_2aa8_38d2de6af30d -->|calls| 81474b82_2ee1_c89a_4632_f7e06e5f8c52
  f313e85c_6c9f_50a8_2cca_e64e9585a7ce["write()"]
  ac3a6375_8af0_d92c_2aa8_38d2de6af30d -->|calls| f313e85c_6c9f_50a8_2cca_e64e9585a7ce
  style ac3a6375_8af0_d92c_2aa8_38d2de6af30d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java lines 2468–2482

        @Override
        public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
            if (!inboundBuffer.isEmpty()) {
                for (Object o: inboundBuffer) {
                    ctx.fireChannelRead(o);
                }
                ctx.fireChannelReadComplete();
            }
            if (!outboundBuffer.isEmpty()) {
                for (Object o: outboundBuffer) {
                    ctx.write(o);
                }
                ctx.flush();
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does handlerRemoved() do?
handlerRemoved() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java.
Where is handlerRemoved() defined?
handlerRemoved() is defined in transport/src/test/java/io/netty/channel/DefaultChannelPipelineTest.java at line 2468.
What does handlerRemoved() call?
handlerRemoved() calls 2 function(s): flush, write.

Analyze Your Own Codebase

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

Try Supermodel Free