public interface IMqttMessageInterceptor
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
onAfterDecoded(org.tio.core.ChannelContext context,
net.dreamlu.iot.mqtt.codec.MqttMessage message,
int packetSize)
解码成功后触发本方法
|
default void |
onAfterHandled(org.tio.core.ChannelContext context,
net.dreamlu.iot.mqtt.codec.MqttMessage message,
long cost)
处理一个消息包后
|
default void |
onAfterReceivedBytes(org.tio.core.ChannelContext context,
int receivedBytes)
接收到TCP层传过来的数据后
|
default void onAfterReceivedBytes(org.tio.core.ChannelContext context,
int receivedBytes)
throws Exception
context - ChannelContextreceivedBytes - 本次接收了多少字节Exception - Exceptiondefault 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.