public abstract class MqttAdapter extends Object
| 构造器和说明 |
|---|
MqttAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
connect(io.netty.handler.codec.mqtt.MqttMessage mqttMessage,
io.netty.channel.ChannelHandlerContext ctx) |
void |
disconnect(io.netty.handler.codec.mqtt.MqttMessage mqttMessage,
io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
abstract void |
message(io.netty.handler.codec.mqtt.MqttMessageType type,
io.netty.handler.codec.mqtt.MqttMessage mqttMessage,
io.netty.channel.ChannelHandlerContext ctx)
消息处理
|
void |
pingReq(io.netty.handler.codec.mqtt.MqttMessage mqttMessage,
io.netty.channel.ChannelHandlerContext ctx) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
Exceptionpublic void connect(io.netty.handler.codec.mqtt.MqttMessage mqttMessage,
io.netty.channel.ChannelHandlerContext ctx)
public void pingReq(io.netty.handler.codec.mqtt.MqttMessage mqttMessage,
io.netty.channel.ChannelHandlerContext ctx)
public void disconnect(io.netty.handler.codec.mqtt.MqttMessage mqttMessage,
io.netty.channel.ChannelHandlerContext ctx)
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
public abstract void message(io.netty.handler.codec.mqtt.MqttMessageType type,
io.netty.handler.codec.mqtt.MqttMessage mqttMessage,
io.netty.channel.ChannelHandlerContext ctx)
Copyright © 2024. All rights reserved.