@ChannelHandler.Sharable public class MqttServerChannelHandler extends AbstractChannelHandler<io.netty.handler.codec.mqtt.MqttMessage,Object>
| 构造器和说明 |
|---|
MqttServerChannelHandler(BrokerConfiguration brokerConfig,
IAuthenticator authenticator,
MqttSessionRegistry sessionRegistry,
MqttPostOffice postOffice) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
onMessageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.mqtt.MqttMessage msg) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
channelRead, messageToString, writebind, close, connect, deregister, disconnect, flush, readpublic MqttServerChannelHandler(BrokerConfiguration brokerConfig, IAuthenticator authenticator, MqttSessionRegistry sessionRegistry, MqttPostOffice postOffice)
public void onMessageReceived(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.mqtt.MqttMessage msg)
throws Exception
Exceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx)
channelWritabilityChanged 在接口中 io.netty.channel.ChannelInboundHandlerchannelWritabilityChanged 在类中 io.netty.channel.ChannelInboundHandlerAdapterpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
userEventTriggered 在接口中 io.netty.channel.ChannelInboundHandleruserEventTriggered 在类中 AbstractChannelHandler<io.netty.handler.codec.mqtt.MqttMessage,Object>Copyright © 2021. All rights reserved.