Class MQTTStateManager


  • public class MQTTStateManager
    extends Object
    • Method Detail

      • removeInstance

        public static void removeInstance​(org.apache.activemq.artemis.core.server.ActiveMQServer server)
      • scanSessions

        public void scanSessions()
      • removeDurableSessionState

        public void removeDurableSessionState​(String clientId)
                                       throws Exception
        Throws:
        Exception
      • serializeState

        public static org.apache.activemq.artemis.core.message.impl.CoreMessage serializeState​(MQTTSessionState state,
                                                                                               long messageID)
      • isClientConnected

        public boolean isClientConnected​(String clientId,
                                         MQTTConnection connection)
      • isClientConnected

        public boolean isClientConnected​(String clientId)
      • removeConnectedClient

        public void removeConnectedClient​(String clientId)
      • addConnectedClient

        public MQTTConnection addConnectedClient​(String clientId,
                                                 MQTTConnection connection)
        Parameters:
        clientId -
        connection -
        Returns:
        the MQTTConnection that the added connection replaced or null if there was no previous entry for the clientId