Interface MQTTInterface

All Known Implementing Classes:
ECPDSPublisher

public interface MQTTInterface
ECMWF Product Data Store (OpenECPDS) Project.
Since:
2024-07-01
Version:
6.7.7
Author:
Laurent Gougeon - syi@ecmwf.int, ECMWF.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the number of client connected to the MQTT broker.
    void
    publish(String topic, int qos, long expiryInterval, String contentType, String clientId, String payload, boolean retain)
    Publish a notification to the registered MQTT broker.
    void
    remove(String topic)
    Remove a retained notification from the MQTT broker.
  • Method Details

    • publish

      void publish(String topic, int qos, long expiryInterval, String contentType, String clientId, String payload, boolean retain)
      Publish a notification to the registered MQTT broker.
      Parameters:
      topic - the topic
      qos - the qos
      expiryInterval - the expiry interval
      contentType - the content type
      clientId - the client id
      payload - the payload
      retain - the retain
    • remove

      void remove(String topic)
      Remove a retained notification from the MQTT broker.
      Parameters:
      topic - the topic
    • clientsCount

      int clientsCount()
      Get the number of client connected to the MQTT broker.
      Returns:
      number clients