Class SslCloseCompletionEventHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    @Sharable
    public final class SslCloseCompletionEventHandler
    extends io.netty.channel.ChannelInboundHandlerAdapter
    Handles SslCloseCompletionEvents that are sent whenever an SSL channel goes inactive. This most commonly occurs on a tls_close sent by the server. Channels in this state can't be reused so they must be closed.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Method Detail

      • userEventTriggered

        public void userEventTriggered​(io.netty.channel.ChannelHandlerContext ctx,
                                       Object evt)
        Close the channel if the event is SslCloseCompletionEvent and the channel is unused. If the channel is being used, it will be closed in ResponseHandler
        Specified by:
        userEventTriggered in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        userEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapter