Interface PingRespOutboundInterceptor
-
- 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 PingRespOutboundInterceptor extends Interceptor
Interface for the ping response interception.Interceptors are always called by the same thread for all messages for the same client.
If the same instance is shared between multiple clients it can be called by different threads and therefore must be thread-safe.
- Since:
- 4.3.0, CE 2020.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onOutboundPingResp(@NotNull PingRespOutboundInput pingRespOutboundInput, @NotNull PingRespOutboundOutput pingRespOutboundOutput)
When aPingRespOutboundInterceptor
is set through any extension, this method gets called for every outbound PINGRESP packet from any MQTT client.
-
-
-
Method Detail
-
onOutboundPingResp
void onOutboundPingResp(@NotNull PingRespOutboundInput pingRespOutboundInput, @NotNull PingRespOutboundOutput pingRespOutboundOutput)
When aPingRespOutboundInterceptor
is set through any extension, this method gets called for every outbound PINGRESP packet from any MQTT client.The execution of interceptor delays the handling of the PINGRESP. Therefore the client may disconnect if the execution of the interceptor takes to long.
- Parameters:
pingRespOutboundInput
- ThePingRespOutboundInput
parameter.pingRespOutboundOutput
- ThePingRespOutboundOutput
parameter.- Since:
- 4.3.0, CE 2020.1
-
-