Class NettyConnectionHandler

    • Field Detail

      • CONNECTION

        public static final io.netty.util.AttributeKey<NettyConnection> CONNECTION
      • READ_BYTES

        public static final io.netty.util.AttributeKey<Long> READ_BYTES
      • WRITTEN_BYTES

        public static final io.netty.util.AttributeKey<Long> WRITTEN_BYTES
      • sslInitDone

        protected boolean sslInitDone
    • Method Detail

      • getMaxIdleTime

        public abstract int getMaxIdleTime()
        Returns the max number of seconds a connection can be idle (both ways) before being closed.

        Returns:
        the max number of seconds a connection can be idle.
      • handlerAdded

        public void handlerAdded​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        handlerAdded in interface io.netty.channel.ChannelHandler
        Overrides:
        handlerAdded in class io.netty.channel.ChannelHandlerAdapter
      • handlerRemoved

        public void handlerRemoved​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        handlerRemoved in interface io.netty.channel.ChannelHandler
        Overrides:
        handlerRemoved in class io.netty.channel.ChannelHandlerAdapter
      • channelRead0

        public void channelRead0​(io.netty.channel.ChannelHandlerContext ctx,
                                 String message)
        Specified by:
        channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<String>
      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelHandler
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
      • userEventTriggered

        public void userEventTriggered​(io.netty.channel.ChannelHandlerContext ctx,
                                       Object evt)
                                throws Exception
        Specified by:
        userEventTriggered in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        userEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        Exception