File tree Expand file tree Collapse file tree
org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments