File tree Expand file tree Collapse file tree
org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*******************************************************************************
2- * Copyright (c) 2009, 2015 IBM Corp.
2+ * Copyright (c) 2009, 2018 IBM Corp.
33 *
44 * All rights reserved. This program and the accompanying materials
55 * are made available under the terms of the Eclipse Public License v1.0
1111 * http://www.eclipse.org/org/documents/edl-v10.php.
1212 *
1313 * Contributors:
14- * Dave Locke - initial API and implementation and/or initial documentation
15- * Ian Craggs - MQTT 3.1.1 support
16- * Ian Craggs - per subscription message handlers (bug 466579)
17- * Ian Craggs - ack control (bug 472172)
14+ * James Sutton - MQTT V5 support
1815 */
1916
2017package org .eclipse .paho .mqttv5 .client ;
@@ -878,6 +875,12 @@ public interface IMqttClient { //extends IMqttAsyncClient {
878875 */
879876 public void setManualAcks (boolean manualAcks );
880877
878+ /**
879+ * Will attempt to reconnect to the server after the client has lost connection.
880+ * @throws MqttException if an error occurs attempting to reconnect
881+ */
882+ public void reconnect () throws MqttException ;
883+
881884 /**
882885 * Indicate that the application has completed processing the message with id messageId.
883886 * This will cause the MQTT acknowledgement to be sent to the server.
You can’t perform that action at this time.
0 commit comments