Interface ConnectInboundInterceptorProvider
public interface ConnectInboundInterceptorProvider
The interceptor provider allows to implement custom logic to modify incoming CONNECT messages. For each incoming
CONNECT message a
ConnectInboundInterceptor can be provided that contains the modification logic.- Since:
- 4.2.0, CE 2020.1
-
Method Summary
Modifier and Type Method Description @Nullable ConnectInboundInterceptorgetConnectInboundInterceptor(@NotNull ConnectInboundProviderInput input)This method is called for each incoming CONNECT message by HiveMQ.
-
Method Details
-
getConnectInboundInterceptor
@Nullable @Nullable ConnectInboundInterceptor getConnectInboundInterceptor(@NotNull ConnectInboundProviderInput input)This method is called for each incoming CONNECT message by HiveMQ.Either the same
ConnectInboundInterceptor(stateless or must be thread-safe) or a new one (stateful, must not be thread-safe) can be supplied on each call.nullcan be returned if a CONNECT message should not be intercepted.- Returns:
- An implementation of the
ConnectInboundInterceptoror null if the CONNECT should not be intercepted. - Since:
- 4.2.0, CE 2020.1
-