Class MqttClientAioHandler

java.lang.Object
org.dromara.mica.mqtt.core.client.MqttClientAioHandler
All Implemented Interfaces:
org.tio.client.intf.TioClientHandler, org.tio.core.intf.TioHandler

public class MqttClientAioHandler extends Object implements org.tio.client.intf.TioClientHandler
mqtt 客户端处理
Author:
L.cm
  • Constructor Details

  • Method Details

    • heartbeatPacket

      public org.tio.core.intf.Packet heartbeatPacket(org.tio.core.ChannelContext channelContext)
      Specified by:
      heartbeatPacket in interface org.tio.client.intf.TioClientHandler
    • 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.TioHandler
      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.TioHandler
    • handler

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