Skip to content

Commit 1f28a02

Browse files
author
Ian Craggs
committed
Add reconnect method to interface #483
1 parent 2912fcb commit 1f28a02

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

  • org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client

org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/IMqttClient.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
@@ -11,10 +11,7 @@
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

2017
package 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.

0 commit comments

Comments
 (0)