Class MQTTProtocolHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.activemq.artemis.core.protocol.mqtt.MQTTProtocolHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class MQTTProtocolHandler extends io.netty.channel.ChannelInboundHandlerAdapterThis class is responsible for receiving and sending MQTT packets, delegating behaviour to one of the MQTTConnectionManager, MQTTPublishManager, MQTTSubscriptionManager classes.
-
-
Constructor Summary
Constructors Constructor Description MQTTProtocolHandler(ActiveMQServer server, MQTTProtocolManager protocolManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidact(io.netty.handler.codec.mqtt.MqttMessage message)voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)protected voidsendToClient(io.netty.handler.codec.mqtt.MqttMessage message)-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
MQTTProtocolHandler
public MQTTProtocolHandler(ActiveMQServer server, MQTTProtocolManager protocolManager)
-
-
Method Detail
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter
-
act
public void act(io.netty.handler.codec.mqtt.MqttMessage message)
-
sendToClient
protected void sendToClient(io.netty.handler.codec.mqtt.MqttMessage message)
-
-