/** * Publish a message to a topic * * @param clientHandle * identifies the MqttConnection to use * @param topic * the topic to which to publish * @param message * the message to publish * @param invocationContext * arbitrary data to be passed back to the application * @param activityToken * arbitrary identifier to be passed back to the Activity * @throws MqttPersistenceException when a problem occurs storing the message * @throws MqttException if there was an error publishing the message * @return token for tracking the operation */ public IMqttDeliveryToken publish(String clientHandle, String topic, MqttMessage message, String invocationContext, String activityToken) throws MqttPersistenceException, MqttException { MqttConnection client = getConnection(clientHandle); return client.publish(topic, message, invocationContext, activityToken); }
/** * Publish a message to a topic * * @param clientHandle * identifies the MqttConnection to use * @param topic * the topic to which to publish * @param payload * the content of the message to publish * @param qos * the quality of service requested * @param retained * whether the MQTT server should retain this message * @param invocationContext * arbitrary data to be passed back to the application * @param activityToken * arbitrary identifier to be passed back to the Activity * @throws MqttPersistenceException when a problem occurs storing the message * @throws MqttException if there was an error publishing the message * @return token for tracking the operation */ public IMqttDeliveryToken publish(String clientHandle, String topic, byte[] payload, int qos, boolean retained, String invocationContext, String activityToken) throws MqttPersistenceException, MqttException { MqttConnection client = getConnection(clientHandle); return client.publish(topic, payload, qos, retained, invocationContext, activityToken); }
/** * Publish a message to a topic * * @param clientHandle * identifies the MqttConnection to use * @param topic * the topic to which to publish * @param message * the message to publish * @param invocationContext * arbitrary data to be passed back to the application * @param activityToken * arbitrary identifier to be passed back to the Activity * @throws MqttPersistenceException when a problem occurs storing the message * @throws MqttException if there was an error publishing the message * @return token for tracking the operation */ public IMqttDeliveryToken publish(String clientHandle, String topic, MqttMessage message, String invocationContext, String activityToken) throws MqttPersistenceException, MqttException { MqttConnection client = getConnection(clientHandle); return client.publish(topic, message, invocationContext, activityToken); }
/** * Publish a message to a topic * * @param clientHandle * identifies the MqttConnection to use * @param topic * the topic to which to publish * @param message * the message to publish * @param invocationContext * arbitrary data to be passed back to the application * @param activityToken * arbitrary identifier to be passed back to the Activity * @throws MqttPersistenceException when a problem occurs storing the message * @throws MqttException if there was an error publishing the message * @return token for tracking the operation */ public IMqttDeliveryToken publish(String clientHandle, String topic, MqttMessage message, String invocationContext, String activityToken) throws MqttPersistenceException, MqttException { MqttConnection client = getConnection(clientHandle); return client.publish(topic, message, invocationContext, activityToken); }
/** * Publish a message to a topic * * @param clientHandle * identifies the MqttConnection to use * @param topic * the topic to which to publish * @param payload * the content of the message to publish * @param qos * the quality of service requested * @param retained * whether the MQTT server should retain this message * @param invocationContext * arbitrary data to be passed back to the application * @param activityToken * arbitrary identifier to be passed back to the Activity * @throws MqttPersistenceException when a problem occurs storing the message * @throws MqttException if there was an error publishing the message * @return token for tracking the operation */ public IMqttDeliveryToken publish(String clientHandle, String topic, byte[] payload, int qos, boolean retained, String invocationContext, String activityToken) throws MqttPersistenceException, MqttException { MqttConnection client = getConnection(clientHandle); return client.publish(topic, payload, qos, retained, invocationContext, activityToken); }
/** * Publish a message to a topic * * @param clientHandle * identifies the MqttConnection to use * @param topic * the topic to which to publish * @param payload * the content of the message to publish * @param qos * the quality of service requested * @param retained * whether the MQTT server should retain this message * @param invocationContext * arbitrary data to be passed back to the application * @param activityToken * arbitrary identifier to be passed back to the Activity * @throws MqttPersistenceException when a problem occurs storing the message * @throws MqttException if there was an error publishing the message * @return token for tracking the operation */ public IMqttDeliveryToken publish(String clientHandle, String topic, byte[] payload, int qos, boolean retained, String invocationContext, String activityToken) throws MqttPersistenceException, MqttException { MqttConnection client = getConnection(clientHandle); return client.publish(topic, payload, qos, retained, invocationContext, activityToken); }