Class MqttUtils
java.lang.Object
org.springframework.integration.mqtt.support.MqttUtils
MQTT Utilities.
- Since:
- 5.4
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.paho.client.mqttv3.MqttConnectOptionscloneConnectOptions(org.eclipse.paho.client.mqttv3.MqttConnectOptions options) Clone theMqttConnectOptions, except the serverUris.static voidstopClientReconnectCycle(org.eclipse.paho.client.mqttv3.IMqttAsyncClient client) Perform astopReconnectCycle()(via reflection) method on the provided client to clean up resources on client stop.static voidstopClientReconnectCycle(org.eclipse.paho.mqttv5.client.IMqttAsyncClient client) Perform astopReconnectCycle()(via reflection) method on the provided client to clean up resources on client stop.
-
Method Details
-
cloneConnectOptions
public static org.eclipse.paho.client.mqttv3.MqttConnectOptions cloneConnectOptions(org.eclipse.paho.client.mqttv3.MqttConnectOptions options) Clone theMqttConnectOptions, except the serverUris.- Parameters:
options- the options to clone.- Returns:
- the clone.
-
stopClientReconnectCycle
public static void stopClientReconnectCycle(org.eclipse.paho.client.mqttv3.IMqttAsyncClient client) Perform astopReconnectCycle()(via reflection) method on the provided client to clean up resources on client stop. TODO until the real fix in Paho library.- Parameters:
client- the MQTTv3 Paho client instance.- Since:
- 6.1.9
-
stopClientReconnectCycle
public static void stopClientReconnectCycle(org.eclipse.paho.mqttv5.client.IMqttAsyncClient client) Perform astopReconnectCycle()(via reflection) method on the provided client to clean up resources on client stop. TODO until the real fix in Paho library.- Parameters:
client- the MQTTv5 Paho client instance.- Since:
- 6.1.9
-