Skip to content

Commit a7d5acc

Browse files
committed
more doc changes and graalvm fix for jni-config
1 parent ed1af55 commit a7d5acc

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

src/main/java/software/amazon/awssdk/crt/mqtt5/PublishReturn.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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).

src/main/resources/META-INF/native-image/software.amazon.awssdk/crt/aws-crt/jni-config.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,8 +1550,16 @@
15501550
"name": "<init>",
15511551
"parameterTypes": [
15521552
"software.amazon.awssdk.crt.mqtt5.packets.PublishPacket",
1553-
"long[]"
1553+
"long"
15541554
]
1555+
},
1556+
{
1557+
"name": "wasControlAcquired",
1558+
"parameterTypes": []
1559+
},
1560+
{
1561+
"name": "invalidateAfterCallback",
1562+
"parameterTypes": []
15551563
}
15561564
]
15571565
},

0 commit comments

Comments
 (0)