@ClientScope public class MqttOutgoingQosHandler extends MqttSessionAwareHandler implements io.reactivex.FlowableSubscriber<com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow>, java.lang.Runnable, ContextFuture.Listener<com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow>
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 |
exceptionCaught(@NotNull io.netty.channel.ChannelHandlerContext ctx,
@NotNull java.lang.Throwable cause) |
void |
onComplete() |
void |
onError(@NotNull java.lang.Throwable t) |
void |
onNext(@NotNull com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow publishWithFlow) |
void |
onSessionEnd(@NotNull java.lang.Throwable cause) |
void |
onSessionStartOrResume(@NotNull MqttClientConnectionConfig connectionConfig) |
void |
onSubscribe(@NotNull org.reactivestreams.Subscription subscription) |
void |
operationComplete(@NotNull ContextFuture<? extends com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow> future) |
void |
run() |
isSharable
handlerAdded, onDisconnectEvent, userEventTriggered
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
ensureNotSharable, handlerRemoved
@NotNull public static final @NotNull java.lang.String NAME
public void onSessionStartOrResume(@NotNull @NotNull MqttClientConnectionConfig connectionConfig)
onSessionStartOrResume
in class MqttSessionAwareHandler
public void onSubscribe(@NotNull @NotNull org.reactivestreams.Subscription subscription)
onSubscribe
in interface io.reactivex.FlowableSubscriber<com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow>
onSubscribe
in interface org.reactivestreams.Subscriber<com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow>
public void onNext(@NotNull @NotNull com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow publishWithFlow)
onNext
in interface org.reactivestreams.Subscriber<com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow>
public void onComplete()
onComplete
in interface org.reactivestreams.Subscriber<com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow>
public void onError(@NotNull @NotNull java.lang.Throwable t)
onError
in interface org.reactivestreams.Subscriber<com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow>
@CallByThread(value="Netty EventLoop") public void run()
run
in interface java.lang.Runnable
public void operationComplete(@NotNull @NotNull ContextFuture<? extends com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow> future)
operationComplete
in interface io.netty.util.concurrent.GenericFutureListener<ContextFuture<? extends com.hivemq.client.internal.mqtt.handler.publish.outgoing.MqttPublishWithFlow>>
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 exceptionCaught(@NotNull @NotNull io.netty.channel.ChannelHandlerContext ctx, @NotNull @NotNull java.lang.Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
public void onSessionEnd(@NotNull @NotNull java.lang.Throwable cause)
onSessionEnd
in class MqttSessionAwareHandler