Package br.com.anteros.mqtt.core.client
Class MqttClientAioHandler
- java.lang.Object
-
- br.com.anteros.mqtt.core.client.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
-
-
Constructor Summary
Constructors Constructor Description MqttClientAioHandler(MqttClientCreator mqttClientCreator, IMqttClientProcessor processor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.tio.core.intf.Packetdecode(ByteBuffer buffer, int limit, int position, int readableLength, org.tio.core.ChannelContext context)ByteBufferencode(org.tio.core.intf.Packet packet, org.tio.core.TioConfig tioConfig, org.tio.core.ChannelContext channelContext)voidhandler(org.tio.core.intf.Packet packet, org.tio.core.ChannelContext context)org.tio.core.intf.PacketheartbeatPacket(org.tio.core.ChannelContext channelContext)
-
-
-
Constructor Detail
-
MqttClientAioHandler
public MqttClientAioHandler(MqttClientCreator mqttClientCreator, IMqttClientProcessor processor)
-
-
Method Detail
-
heartbeatPacket
public org.tio.core.intf.Packet heartbeatPacket(org.tio.core.ChannelContext channelContext)
- Specified by:
heartbeatPacketin interfaceorg.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:
decodein interfaceorg.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:
encodein interfaceorg.tio.core.intf.AioHandler
-
handler
public void handler(org.tio.core.intf.Packet packet, org.tio.core.ChannelContext context)- Specified by:
handlerin interfaceorg.tio.core.intf.AioHandler
-
-