Interface ConnackOutboundInterceptor
-
- 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 ConnackOutboundInterceptor extends Interceptor
Interface for the outbound CONNACK 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.
When the method
onOutboundConnack(ConnackOutboundInput, ConnackOutboundOutput)
throws an exception or a call toConnackOutboundOutput.async(Duration)
times out withTimeoutFallback.FAILURE
, then the connection will be closed by the broker without another packet being sent to the client.- Since:
- 4.2.0, CE 2020.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onOutboundConnack(@NotNull ConnackOutboundInput connackOutboundInput, @NotNull ConnackOutboundOutput connackOutboundOutput)
When aConnackOutboundInterceptor
is set through any extension, this method gets called for every outbound CONNACK packet from any MQTT client.
-
-
-
Method Detail
-
onOutboundConnack
void onOutboundConnack(@NotNull ConnackOutboundInput connackOutboundInput, @NotNull ConnackOutboundOutput connackOutboundOutput)
When aConnackOutboundInterceptor
is set through any extension, this method gets called for every outbound CONNACK packet from any MQTT client.- Parameters:
connackOutboundInput
- TheConnackOutboundInput
parameter.connackOutboundOutput
- TheConnackOutboundOutput
parameter.- Since:
- 4.2.0, CE 2020.1
-
-