Package io.moquette.interception
Interface Interceptor
-
- All Known Implementing Classes:
BrokerInterceptor
public interface InterceptorThis interface is to be used internally by the broker components.An interface is used instead of a class to allow more flexibility in changing an implementation.
Interceptor implementations forward notifications to a
InterceptHandler, that is normally a field. So, the implementations should act as a proxy to a custom intercept handler.- See Also:
InterceptHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddInterceptHandler(InterceptHandler interceptHandler)voidnotifyClientConnected(io.netty.handler.codec.mqtt.MqttConnectMessage msg)voidnotifyClientConnectionLost(String clientID, String username)voidnotifyClientDisconnected(String clientID, String username)voidnotifyMessageAcknowledged(InterceptAcknowledgedMessage msg)voidnotifyTopicPublished(io.netty.handler.codec.mqtt.MqttPublishMessage msg, String clientID, String username)voidnotifyTopicSubscribed(Subscription sub, String username)voidnotifyTopicUnsubscribed(String topic, String clientID, String username)voidremoveInterceptHandler(InterceptHandler interceptHandler)
-
-
-
Method Detail
-
notifyClientConnected
void notifyClientConnected(io.netty.handler.codec.mqtt.MqttConnectMessage msg)
-
notifyTopicPublished
void notifyTopicPublished(io.netty.handler.codec.mqtt.MqttPublishMessage msg, String clientID, String username)
-
notifyTopicSubscribed
void notifyTopicSubscribed(Subscription sub, String username)
-
notifyTopicUnsubscribed
void notifyTopicUnsubscribed(String topic, String clientID, String username)
-
notifyMessageAcknowledged
void notifyMessageAcknowledged(InterceptAcknowledgedMessage msg)
-
addInterceptHandler
void addInterceptHandler(InterceptHandler interceptHandler)
-
removeInterceptHandler
void removeInterceptHandler(InterceptHandler interceptHandler)
-
-