public interface PublishService
void publish(@NotNull PUBLISH publish)
PUBLISH message. The standard MQTT topic matching mechanism of HiveMQ will apply.
If the given PUBLISH or any of its information (topic,qos,message) is null, a NullPointerException
will be thrownpublish - object with topic, QoS and message, which should be published to all subscribed clientsNullPointerException - if the given object is null or any relevant information like topic, qos
or message is nullvoid publishtoClient(@NotNull PUBLISH publish, @NotNull String clientId)
PUBLISH message.
The PUBLISH will only be delivered to the client with the specified client identifier.
Also the client needs to be subscribed on the topic of the PUBLISH in order to receive it.
If the given PUBLISH or any of its information (topic,qos,message) is null, a NullPointerException
will be thrownpublish - object with topic, QoS and message, which should be published to all subscribed clientsNullPointerException - if the given object is null or any relevant information like topic, qos
or message is nullCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.