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 TypeMethodDescriptionint
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 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 topicqos
- the qosexpiryInterval
- the expiry intervalcontentType
- the content typeclientId
- the client idpayload
- the payloadretain
- the retain
-
remove
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
-