Home / Class/ SslCompletionEventHandler Class — netty Architecture

SslCompletionEventHandler Class — netty Architecture

Architecture documentation for the SslCompletionEventHandler class in SslHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  613fe2b6_838b_9344_70e8_c8bab095280e["SslCompletionEventHandler"]
  95d7e028_ee72_2502_f279_8411001f0ae8["SslHandlerTest.java"]
  613fe2b6_838b_9344_70e8_c8bab095280e -->|defined in| 95d7e028_ee72_2502_f279_8411001f0ae8
  722bfd3a_d8b4_c552_b80f_eb587610c92c["SslCompletionEventHandler()"]
  613fe2b6_838b_9344_70e8_c8bab095280e -->|method| 722bfd3a_d8b4_c552_b80f_eb587610c92c
  d6074af3_1f59_065c_ae89_2ee3ae9e9fd5["userEventTriggered()"]
  613fe2b6_838b_9344_70e8_c8bab095280e -->|method| d6074af3_1f59_065c_ae89_2ee3ae9e9fd5
  a95fcaa5_d7ab_1f7b_136b_dcc5b9db569c["isSharable()"]
  613fe2b6_838b_9344_70e8_c8bab095280e -->|method| a95fcaa5_d7ab_1f7b_136b_dcc5b9db569c

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java lines 1876–1899

    private static class SslCompletionEventHandler extends ChannelInboundHandlerAdapter {
        private final Queue<SslHandshakeCompletionEvent> handshakeCompletionEvents;
        private final Queue<SslCloseCompletionEvent> closeCompletionEvents;

        SslCompletionEventHandler(Queue<SslHandshakeCompletionEvent> handshakeCompletionEvents,
                                  Queue<SslCloseCompletionEvent> closeCompletionEvents) {
            this.handshakeCompletionEvents = handshakeCompletionEvents;
            this.closeCompletionEvents = closeCompletionEvents;
        }

        @Override
        public void userEventTriggered(ChannelHandlerContext ctx, Object evt) {
            if (evt instanceof SslHandshakeCompletionEvent) {
                handshakeCompletionEvents.add((SslHandshakeCompletionEvent) evt);
            } else if (evt instanceof SslCloseCompletionEvent) {
                closeCompletionEvents.add((SslCloseCompletionEvent) evt);
            }
        }

        @Override
        public boolean isSharable() {
            return true;
        }
    }

Frequently Asked Questions

What is the SslCompletionEventHandler class?
SslCompletionEventHandler is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java.
Where is SslCompletionEventHandler defined?
SslCompletionEventHandler is defined in handler/src/test/java/io/netty/handler/ssl/SslHandlerTest.java at line 1876.

Analyze Your Own Codebase

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

Try Supermodel Free