Class ECPDSPublisher
java.lang.Object
ecmwf.ecpds.mover.plugin.mqtt.ECPDSPublisher
-
Method Summary
Modifier and TypeMethodDescriptionintGet the number of client connected to the MQTT broker.voidpublish(String topic, int qos, long expiryInterval, String contentType, String clientId, String payload, boolean retain) Publish a notification to the registered MQTT broker.voidRemove 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:
publishin 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:
removein interfaceMQTTInterface- Parameters:
topic- the topic
-
clientsCount
public int clientsCount()Get the number of client connected to the MQTT broker. Clients count.- Specified by:
clientsCountin interfaceMQTTInterface- Returns:
- number clients
-