Skip to content

Commit 7416251

Browse files
committed
Merging veita-issue-446
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
1 parent d083428 commit 7416251

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/IMqttAsyncClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
* also be notified when a message has been delivered to the requested quality of service.</p>
117117
*
118118
*/
119-
public interface IMqttAsyncClient {
119+
public interface IMqttAsyncClient extends AutoCloseable {
120120
/**
121121
* Connects to an MQTT server using the default options.
122122
* <p>The default options are specified in {@link MqttConnectOptions} class.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* style. The blocking client provides compatibility with earlier versions
6060
* of the MQTT client.</p>
6161
*/
62-
public interface IMqttClient { //extends IMqttAsyncClient {
62+
public interface IMqttClient extends AutoCloseable { //extends IMqttAsyncClient {
6363
/**
6464
* Connects to an MQTT server using the default options.
6565
* <p>The default options are specified in {@link MqttConnectOptions} class.

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/MqttClientPersistence.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* It is up to the persistence interface to log any exceptions or error information
3333
* which may be required when diagnosing a persistence failure.</p>
3434
*/
35-
public interface MqttClientPersistence {
35+
public interface MqttClientPersistence extends AutoCloseable {
3636
/**
3737
* Initialise the persistent store.
3838
* If a persistent store exists for this client ID then open it, otherwise

0 commit comments

Comments
 (0)