Interface Interceptor

  • All Known Implementing Classes:
    BrokerInterceptor

    public interface Interceptor
    This 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 Detail

      • notifyClientConnected

        void notifyClientConnected​(io.netty.handler.codec.mqtt.MqttConnectMessage msg)
      • notifyClientDisconnected

        void notifyClientDisconnected​(String clientID,
                                      String username)
      • notifyClientConnectionLost

        void notifyClientConnectionLost​(String clientID,
                                        String username)
      • 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)
      • addInterceptHandler

        void addInterceptHandler​(InterceptHandler interceptHandler)
      • removeInterceptHandler

        void removeInterceptHandler​(InterceptHandler interceptHandler)