Home / Class/ MessageDelegatorChannelHandler Class — netty Architecture

MessageDelegatorChannelHandler Class — netty Architecture

Architecture documentation for the MessageDelegatorChannelHandler class in SSLEngineTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  de5d347c_3481_e1ad_c873_b5f9039b9bf3["MessageDelegatorChannelHandler"]
  859a13fc_5d1f_4d06_dca1_2d4d0f57be71["SSLEngineTest.java"]
  de5d347c_3481_e1ad_c873_b5f9039b9bf3 -->|defined in| 859a13fc_5d1f_4d06_dca1_2d4d0f57be71
  e3264542_e539_15fe_6edf_a60fa8537434["MessageDelegatorChannelHandler()"]
  de5d347c_3481_e1ad_c873_b5f9039b9bf3 -->|method| e3264542_e539_15fe_6edf_a60fa8537434
  997bfe72_6494_7caa_c430_818fabaf711f["channelRead0()"]
  de5d347c_3481_e1ad_c873_b5f9039b9bf3 -->|method| 997bfe72_6494_7caa_c430_818fabaf711f

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java lines 196–211

    protected static final class MessageDelegatorChannelHandler extends SimpleChannelInboundHandler<ByteBuf> {
        private final MessageReceiver receiver;
        private final CountDownLatch latch;

        public MessageDelegatorChannelHandler(MessageReceiver receiver, CountDownLatch latch) {
            super(false);
            this.receiver = receiver;
            this.latch = latch;
        }

        @Override
        protected void channelRead0(ChannelHandlerContext ctx, ByteBuf msg) throws Exception {
            receiver.messageReceived(ctx, msg);
            latch.countDown();
        }
    }

Frequently Asked Questions

What is the MessageDelegatorChannelHandler class?
MessageDelegatorChannelHandler is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java.
Where is MessageDelegatorChannelHandler defined?
MessageDelegatorChannelHandler is defined in handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java at line 196.

Analyze Your Own Codebase

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

Try Supermodel Free