接口 AioReceive

    • 方法详细资料

      • onHandShaked

        void onHandShaked​(io.netty.channel.Channel ch)
        握手成功业务处理类,此方法支持Async异步处理
        参数:
        ch -
      • onPing

        void onPing​(io.netty.channel.Channel ch)
        收到客户端的Ping操作
      • onText

        void onText​(io.netty.channel.Channel ch,
                    String text)
        客户端消息回调
        参数:
        text -
      • onByte

        void onByte​(io.netty.channel.Channel ch,
                    io.netty.buffer.ByteBuf buf)
      • onRecive

        void onRecive​(io.netty.channel.Channel ch,
                      Events msg)
        接受消息
        参数:
        msg -
      • onKick

        Events onKick​(io.netty.channel.Channel old,
                      Session session)
        处理互踢旧连接关闭业务逻辑
        参数:
        old -
      • onClose

        void onClose​(io.netty.channel.Channel ch,
                     AioClose heartbeat)
        关闭连接通道
        参数:
        ch -
        heartbeat -