Interface ChannelHandler

    • Method Detail

      • handlerAdded

        void handlerAdded​(ChannelHandlerContext ctx)
                   throws java.lang.Exception
        Gets called after the ChannelHandler was added to the actual context and it's ready to handle events.
        Throws:
        java.lang.Exception
      • handlerRemoved

        void handlerRemoved​(ChannelHandlerContext ctx)
                     throws java.lang.Exception
        Gets called after the ChannelHandler was removed from the actual context and it doesn't handle events anymore.
        Throws:
        java.lang.Exception
      • exceptionCaught

        @Deprecated
        void exceptionCaught​(ChannelHandlerContext ctx,
                             java.lang.Throwable cause)
                      throws java.lang.Exception
        Deprecated.
        if you want to handle this event you should implement ChannelInboundHandler and implement the method there.
        Gets called if a Throwable was thrown.
        Throws:
        java.lang.Exception