Skip to content

Commit 1ac0530

Browse files
committed
Improve discoverability of MqttCallbackExtended
It's really hard to find the interface if you don't already know about it. Nothing points to it, yet it's mandatory to subscribe to topics in the method only available in this interface, otherwise the client will not subscribe back to the topics after an automatic reconnection. Signed-off-by: bendem <online@bendem.be>
1 parent e92138e commit 1ac0530

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ public interface IMqttClient extends AutoCloseable { //extends IMqttAsyncClient
847847
* as connect and subscribe can be tracked using the {@link MqttToken} passed to the
848848
* operation<p>
849849
* @see MqttCallback
850+
* @see MqttCallbackExtended
850851
* @param callback the class to callback when for events related to the client
851852
*/
852853
public void setCallback(MqttCallback callback);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* Classes implementing this interface
2323
* can be registered on both types of client: {@link IMqttClient#setCallback(MqttCallback)}
2424
* and {@link IMqttAsyncClient#setCallback(MqttCallback)}
25+
* @see MqttCallbackExtended
2526
*/
2627
public interface MqttCallback {
2728
/**

0 commit comments

Comments
 (0)