Class ProtocolDecoderAdapter

    • Constructor Detail

      • ProtocolDecoderAdapter

        public ProtocolDecoderAdapter()
    • Method Detail

      • finishDecode

        public void finishDecode​(IoSession session,
                                 ProtocolDecoderOutput out)
                          throws java.lang.Exception
        Override this method to deal with the closed connection. The default implementation does nothing.
        Specified by:
        finishDecode in interface ProtocolDecoder
        Throws:
        java.lang.Exception - if the read data violated protocol specification
      • dispose

        public void dispose​(IoSession session)
                     throws java.lang.Exception
        Override this method to dispose all resources related with this decoder. The default implementation does nothing.
        Specified by:
        dispose in interface ProtocolDecoder
        Throws:
        java.lang.Exception - if failed to dispose all resources