Interface DisconnectOutboundInterceptor
-
- All Superinterfaces:
Interceptor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DisconnectOutboundInterceptor extends Interceptor
Interface for the outbound DISCONNECT interception.Interceptors are always called by the same Thread for all messages from the same client.
If the same instance is shared between multiple clients it can be called in different Threads and must therefore be thread-safe.
This interceptor is only called for MQTT 5 clients. With MQTT 3 it is not possible to sent a DISCONNECT from server to client.
- Since:
- 4.3.0, CE 2020.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onOutboundDisconnect(@NotNull DisconnectOutboundInput disconnectOutboundInput, @NotNull DisconnectOutboundOutput disconnectOutboundOutput)
When aDisconnectOutboundInterceptor
is set through any extension, this method gets called for every outbound DISCONNECT packet from any MQTT 5 client.
-
-
-
Method Detail
-
onOutboundDisconnect
void onOutboundDisconnect(@NotNull DisconnectOutboundInput disconnectOutboundInput, @NotNull DisconnectOutboundOutput disconnectOutboundOutput)
When aDisconnectOutboundInterceptor
is set through any extension, this method gets called for every outbound DISCONNECT packet from any MQTT 5 client.When the extension is enabled after HiveMQ is already running, this method will also be called for future DISCONNECT's of clients that are already connected.
- Parameters:
disconnectOutboundInput
- TheDisconnectOutboundInput
parameter.disconnectOutboundOutput
- TheDisconnectOutboundOutput
parameter.- Since:
- 4.3.0, CE 2020.1
-
-