@ClientScope public class MqttIncomingQosHandler extends MqttSessionAwareHandler implements ContextFuture.Listener<MqttMessage.WithId>
Modifier and Type | Field and Description |
---|---|
static @NotNull java.lang.String |
NAME |
hasSession
ctx
Modifier and Type | Method and Description |
---|---|
void |
channelRead(@NotNull io.netty.channel.ChannelHandlerContext ctx,
@NotNull java.lang.Object msg) |
void |
onSessionEnd(@NotNull java.lang.Throwable cause) |
void |
onSessionStartOrResume(@NotNull MqttClientConnectionConfig connectionConfig,
@NotNull io.netty.channel.EventLoop eventLoop) |
void |
operationComplete(@NotNull ContextFuture<? extends MqttMessage.WithId> future) |
isSharable
handlerAdded, onDisconnectEvent, userEventTriggered
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerRemoved
@NotNull public static final @NotNull java.lang.String NAME
public void onSessionStartOrResume(@NotNull @NotNull MqttClientConnectionConfig connectionConfig, @NotNull @NotNull io.netty.channel.EventLoop eventLoop)
onSessionStartOrResume
in class MqttSessionAwareHandler
public void channelRead(@NotNull @NotNull io.netty.channel.ChannelHandlerContext ctx, @NotNull @NotNull java.lang.Object msg)
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
public void operationComplete(@NotNull @NotNull ContextFuture<? extends MqttMessage.WithId> future)
operationComplete
in interface io.netty.util.concurrent.GenericFutureListener<ContextFuture<? extends MqttMessage.WithId>>
public void onSessionEnd(@NotNull @NotNull java.lang.Throwable cause)
onSessionEnd
in class MqttSessionAwareHandler