Class PublishHandler

  • All Implemented Interfaces:
    io.moquette.interception.InterceptHandler

    public class PublishHandler
    extends io.moquette.interception.AbstractInterceptHandler
    PublishHandler handle the messages from MQTT clients.
    • Field Summary

      • Fields inherited from interface io.moquette.interception.InterceptHandler

        ALL_MESSAGE_TYPES
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getID()  
      void onConnect​(io.moquette.interception.messages.InterceptConnectMessage msg)  
      void onDisconnect​(io.moquette.interception.messages.InterceptDisconnectMessage msg)  
      void onPublish​(io.moquette.interception.messages.InterceptPublishMessage msg)  
      • Methods inherited from class io.moquette.interception.AbstractInterceptHandler

        getInterceptedMessageTypes, onConnectionLost, onMessageAcknowledged, onSubscribe, onUnsubscribe
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PublishHandler

        public PublishHandler​(IoTDBConfig config)
    • Method Detail

      • getID

        public java.lang.String getID()
      • onConnect

        public void onConnect​(io.moquette.interception.messages.InterceptConnectMessage msg)
        Specified by:
        onConnect in interface io.moquette.interception.InterceptHandler
        Overrides:
        onConnect in class io.moquette.interception.AbstractInterceptHandler
      • onDisconnect

        public void onDisconnect​(io.moquette.interception.messages.InterceptDisconnectMessage msg)
        Specified by:
        onDisconnect in interface io.moquette.interception.InterceptHandler
        Overrides:
        onDisconnect in class io.moquette.interception.AbstractInterceptHandler
      • onPublish

        public void onPublish​(io.moquette.interception.messages.InterceptPublishMessage msg)
        Specified by:
        onPublish in interface io.moquette.interception.InterceptHandler
        Overrides:
        onPublish in class io.moquette.interception.AbstractInterceptHandler