public class MqttMessageInterceptors extends Object
| 构造器和说明 |
|---|
MqttMessageInterceptors() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onAfterDecoded(org.tio.core.ChannelContext context,
net.dreamlu.iot.mqtt.codec.MqttMessage message,
int packetSize)
解码成功后触发本方法
|
void |
onAfterHandled(org.tio.core.ChannelContext context,
net.dreamlu.iot.mqtt.codec.MqttMessage message,
long cost)
处理一个消息包后
|
void |
onAfterReceivedBytes(org.tio.core.ChannelContext context,
int receivedBytes)
接收到TCP层传过来的数据后
|
public void onAfterReceivedBytes(org.tio.core.ChannelContext context,
int receivedBytes)
throws Exception
context - ChannelContextreceivedBytes - 本次接收了多少字节Exception - Exceptionpublic void onAfterDecoded(org.tio.core.ChannelContext context,
net.dreamlu.iot.mqtt.codec.MqttMessage message,
int packetSize)
throws Exception
context - ChannelContextmessage - MqttMessagepacketSize - packetSizeException - ExceptionCopyright © 2023. All rights reserved.