Interface ConnackOutboundInterceptorProvider
-
- 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 ConnackOutboundInterceptorProvider
The interceptor provider allows to implement custom logic to modify outbound CONNACK messages. For each outbound CONNACK message anConnackOutboundInterceptor
can be provided that contains the modification logic.- Since:
- 4.2.0, CE 2020.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable ConnackOutboundInterceptor
getConnackOutboundInterceptor(@NotNull ConnackOutboundProviderInput connackOutboundProviderInput)
This method is called for each outbound CONNACK message by HiveMQ.
-
-
-
Method Detail
-
getConnackOutboundInterceptor
@Nullable ConnackOutboundInterceptor getConnackOutboundInterceptor(@NotNull ConnackOutboundProviderInput connackOutboundProviderInput)
This method is called for each outbound CONNACK message by HiveMQ.Either the same
ConnackOutboundInterceptor
(stateless or must be thread-safe) or a new one (stateful, must not be thread-safe) can be supplied on each call.null
can be returned if a CONNACK message should not be intercepted.- Parameters:
connackOutboundProviderInput
- TheConnackOutboundProviderInput
.- Returns:
- An implementation of the
ConnackOutboundInterceptor
or null if the CONNECT should not be intercepted. - Since:
- 4.2.0, CE 2020.1
-
-