@@ -17,7 +17,7 @@ public class PublishReturn {
1717 /**
1818 * The already-acquired publish acknowledgement control ID, eagerly acquired by native code
1919 * before the {@link Mqtt5ClientOptions.PublishEvents#onMessageReceived} callback is invoked.
20- * For QoS 0 messages this is 0 (no PUBACK needed ).
20+ * For QoS 0 messages this is 0 (no publish acknowledgement required ).
2121 * After {@code acquirePublishAcknowledgementControl()} is called, this is set to 0 to prevent
2222 * double-use.
2323 */
@@ -27,7 +27,7 @@ public class PublishReturn {
2727 * Set to true when {@code acquirePublishAcknowledgementControl()} is called, indicating that
2828 * the user has taken manual control of the publish acknowledgement. Native code reads this
2929 * via {@code wasControlAcquired()} after the callback returns to decide whether to
30- * auto-invoke the PUBACK .
30+ * auto-invoke the publish acknowledgement .
3131 */
3232 private boolean controlAcquired ;
3333
@@ -100,8 +100,8 @@ private synchronized void invalidateAfterCallback() {
100100
101101 /**
102102 * This is only called in JNI to make a new PublishReturn with a PUBLISH packet.
103- * The controlId is the already- acquired publish acknowledgement control ID (eagerly acquired
104- * by native code before the callback fires). It is 0 for QoS 0 messages .
103+ * The controlId is eagerly acquired by native code prior to
104+ * {@link Mqtt5ClientOptions.PublishEvents#onMessageReceived} being called .
105105 *
106106 * @param newPublishPacket The PublishPacket data received from the server.
107107 * @param controlId The pre-acquired publish acknowledgement control ID (0 for QoS 0 messages).
0 commit comments