Class ECPDSPublisher
java.lang.Object
ecmwf.ecpds.mover.plugin.mqtt.ECPDSPublisher
-
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
public void publish(String topic, int qos, long expiryInterval, String contentType, String clientId, String payload, boolean retain) Publish a notification to the registered MQTT broker. Publish.- Specified by:
publish
in interfaceMQTTInterface
- 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. Removes the.- Specified by:
remove
in interfaceMQTTInterface
- Parameters:
topic
- the topic
-
clientsCount
public int clientsCount()Get the number of client connected to the MQTT broker. Clients count.- Specified by:
clientsCount
in interfaceMQTTInterface
- Returns:
- number clients
-