Class MqttUtils
java.lang.Object
org.springframework.integration.mqtt.support.MqttUtils
- 
Method SummaryModifier 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- 
cloneConnectOptionspublic 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.
 
- 
stopClientReconnectCyclepublic 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
 
- 
stopClientReconnectCyclepublic 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
 
 
-