Interface ConnectInboundInterceptorProvider
-
public interface ConnectInboundInterceptorProvider
The interceptor provider allows to implement custom logic to modify incoming CONNECT messages. For each incoming CONNECT message aConnectInboundInterceptor
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 ConnectInboundInterceptor
getConnectInboundInterceptor(@NotNull ConnectInboundProviderInput input)
This method is called for each incoming CONNECT message by HiveMQ.
-
-
-
Method Detail
-
getConnectInboundInterceptor
@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.null
can be returned if a CONNECT message should not be intercepted.- Parameters:
input
- TheConnectInboundProviderInput
.- Returns:
- An implementation of the
ConnectInboundInterceptor
or null if the CONNECT should not be intercepted. - Since:
- 4.2.0, CE 2020.1
-
-