Package io.netty.handler.codec.mqtt
Class MqttEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageEncoder<MqttMessage>
-
- io.netty.handler.codec.mqtt.MqttEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
@Sharable public final class MqttEncoder extends io.netty.handler.codec.MessageToMessageEncoder<MqttMessage>
-
-
Field Summary
Fields Modifier and Type Field Description static MqttEncoderINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidencode(io.netty.channel.ChannelHandlerContext ctx, MqttMessage msg, List<Object> out)-
Methods inherited from class io.netty.handler.codec.MessageToMessageEncoder
acceptOutboundMessage, write
-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
INSTANCE
public static final MqttEncoder INSTANCE
-
-
Method Detail
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext ctx, MqttMessage msg, List<Object> out) throws Exception- Specified by:
encodein classio.netty.handler.codec.MessageToMessageEncoder<MqttMessage>- Throws:
Exception
-
-