Class MqttClientAioHandler

  • All Implemented Interfaces:
    org.tio.client.intf.ClientAioHandler, org.tio.core.intf.AioHandler

    public class MqttClientAioHandler
    extends Object
    implements org.tio.client.intf.ClientAioHandler
    mqtt 客户端处理
    Author:
    L.cm
    • Method Detail

      • heartbeatPacket

        public org.tio.core.intf.Packet heartbeatPacket​(org.tio.core.ChannelContext channelContext)
        Specified by:
        heartbeatPacket in interface org.tio.client.intf.ClientAioHandler
      • decode

        public org.tio.core.intf.Packet decode​(ByteBuffer buffer,
                                               int limit,
                                               int position,
                                               int readableLength,
                                               org.tio.core.ChannelContext context)
                                        throws org.tio.core.exception.TioDecodeException
        Specified by:
        decode in interface org.tio.core.intf.AioHandler
        Throws:
        org.tio.core.exception.TioDecodeException
      • encode

        public ByteBuffer encode​(org.tio.core.intf.Packet packet,
                                 org.tio.core.TioConfig tioConfig,
                                 org.tio.core.ChannelContext channelContext)
        Specified by:
        encode in interface org.tio.core.intf.AioHandler
      • handler

        public void handler​(org.tio.core.intf.Packet packet,
                            org.tio.core.ChannelContext context)
        Specified by:
        handler in interface org.tio.core.intf.AioHandler