@Singleton public class Mqtt5ConnAckDecoder extends java.lang.Object implements MqttMessageDecoder
Modifier and Type | Method and Description |
---|---|
@NotNull MqttConnAck |
decode(int flags,
@NotNull io.netty.buffer.ByteBuf in,
@NotNull MqttDecoderContext context)
Decodes a MQTT message from the given byte buffer.
|
@NotNull public @NotNull MqttConnAck decode(int flags, @NotNull @NotNull io.netty.buffer.ByteBuf in, @NotNull @NotNull MqttDecoderContext context) throws MqttDecoderException
MqttMessageDecoder
decode
in interface MqttMessageDecoder
flags
- the flags of the fixed header.in
- the byte buffer which contains the encoded MQTT message without the fixed header.context
- the decoder context.MqttDecoderException
- if the byte buffer did not contain a valid encoded MQTT message.