@ChannelHandler.Sharable public class MqttClientChannelHandler extends DefaultSimpleChannelHandler<io.netty.handler.codec.mqtt.MqttMessage>
| 构造器和说明 |
|---|
MqttClientChannelHandler(MqttConnectOptions options,
MqttClient mqttClient) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
handleMessage(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.mqtt.MqttMessage msg) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
channelRead0, channelReadCompletechannelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic MqttClientChannelHandler(MqttConnectOptions options, MqttClient mqttClient)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void handleMessage(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.mqtt.MqttMessage msg)
handleMessage 在类中 DefaultSimpleChannelHandler<io.netty.handler.codec.mqtt.MqttMessage>public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered 在接口中 io.netty.channel.ChannelInboundHandleruserEventTriggered 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 DefaultSimpleChannelHandler<io.netty.handler.codec.mqtt.MqttMessage>Copyright © 2019. All rights reserved.