File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2424import org .eclipse .paho .mqttv5 .common .MqttSubscription ;
2525import org .eclipse .paho .mqttv5 .common .packet .MqttProperties ;
2626
27- public interface IMqttAsyncClient {
27+ public interface IMqttAsyncClient extends AutoCloseable {
2828
2929 /**
3030 * Connects to an MQTT server using the default options.
Original file line number Diff line number Diff line change 6262 * style. The blocking client provides compatibility with earlier versions
6363 * of the MQTT client.</p>
6464 */
65- public interface IMqttClient { //extends IMqttAsyncClient {
65+ public interface IMqttClient extends AutoCloseable { //extends IMqttAsyncClient {
6666 /**
6767 * Connects to an MQTT server using the default options.
6868 * <p>The default options are specified in {@link MqttConnectionOptions} class.
Original file line number Diff line number Diff line change 3535 * It is up to the persistence interface to log any exceptions or error information
3636 * which may be required when diagnosing a persistence failure.</p>
3737 */
38- public interface MqttClientPersistence {
38+ public interface MqttClientPersistence extends AutoCloseable {
3939 /**
4040 * Initialise the persistent store.
4141 * If a persistent store exists for this client ID then open it, otherwise
You can’t perform that action at this time.
0 commit comments