@ConnectionScope public class MqttPingHandler extends MqttConnectionAwareHandler implements DefaultChannelOutboundHandler, java.lang.Runnable, io.netty.channel.ChannelFutureListener
Modifier and Type | Field and Description |
---|---|
static @NotNull java.lang.String |
NAME |
ctx
Constructor and Description |
---|
MqttPingHandler(int keepAlive) |
Modifier and Type | Method and Description |
---|---|
void |
channelRead(@NotNull io.netty.channel.ChannelHandlerContext ctx,
@NotNull java.lang.Object msg) |
void |
flush(@NotNull io.netty.channel.ChannelHandlerContext ctx) |
void |
handlerAdded(@NotNull io.netty.channel.ChannelHandlerContext ctx) |
protected void |
onDisconnectEvent(@NotNull MqttDisconnectEvent disconnectEvent) |
void |
operationComplete(@NotNull io.netty.channel.ChannelFuture future) |
void |
run() |
userEventTriggered
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bind, close, connect, deregister, disconnect, read, write
@NotNull public static final @NotNull java.lang.String NAME
public void handlerAdded(@NotNull @NotNull io.netty.channel.ChannelHandlerContext ctx)
handlerAdded
in interface io.netty.channel.ChannelHandler
handlerAdded
in class MqttConnectionAwareHandler
public void flush(@NotNull @NotNull io.netty.channel.ChannelHandlerContext ctx)
flush
in interface DefaultChannelOutboundHandler
flush
in interface io.netty.channel.ChannelOutboundHandler
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 run()
run
in interface java.lang.Runnable
public void operationComplete(@NotNull @NotNull io.netty.channel.ChannelFuture future)
operationComplete
in interface io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>
protected void onDisconnectEvent(@NotNull @NotNull MqttDisconnectEvent disconnectEvent)
onDisconnectEvent
in class MqttConnectionAwareHandler