-
Notifications
You must be signed in to change notification settings - Fork 43
Manual PUBACK Control #970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sbSteveK
wants to merge
32
commits into
main
Choose a base branch
from
manual-puback
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
cadd516
bind manual puback
sbSteveK cc10600
GraalVM uses ahead of time compilation requiring the jni config to be…
sbSteveK 0452994
Merge branch 'main' into manual-puback
sbSteveK 45286e2
merge with main
sbSteveK f02d9d2
Merge branch 'main' into manual-puback
sbSteveK c02496e
Merge branch 'main' into manual-puback
sbSteveK 9709faa
point to new version of aws-c-mqtt
sbSteveK 23a8573
aws-c-auth v0.10.0
sbSteveK a164681
aws-c-event-stream v0.6.0
sbSteveK 13d973e
aws-c-http v0.10.11
sbSteveK bcb8ecc
aws-lc e50a5f29ee416a7c99be4e72957e8f96aa51dbb9
sbSteveK 42dfa69
s2n v1.7.0
sbSteveK f66b941
add manual puback test suite
sbSteveK f3484fe
forgot to set the acquire puback to 0 for qos 0 publishes
sbSteveK 4875250
puback to publish acknowledgement. aws-c-mqtt -> v0.15.2
sbSteveK 40d5b55
Implement eager control acquisition pattern. Use a bool function to c…
sbSteveK d9e8a1e
Merge branch 'main' into manual-puback
sbSteveK f03c1d6
Don't allow acquire after the callback returns. Add more logging
sbSteveK ed1af55
update docs, make jni/native functions private
sbSteveK a7d5acc
more doc changes and graalvm fix for jni-config
sbSteveK ff52d41
no need to clear an exception on our internal functions
sbSteveK 33bf003
remove throws from invoke publish acknowledgement
sbSteveK 168911a
Merge branch 'main' into manual-puback
sbSteveK 61dde73
pr comment changes and add synchronized to wasControlAcquired()
sbSteveK 0a1eceb
Merge branch 'main' into manual-puback
sbSteveK 6ba7534
set and check thread id on publish acquisition
sbSteveK ccfdf45
updated messaging to explain what threadID is doing.
sbSteveK 9e2fe2b
simplify logic related to whether a manual acknowledgement was taken.…
sbSteveK 507c2f2
change test double call raises to double call returns null
sbSteveK 372c523
other throws tests need to be changed to returns null
sbSteveK f268233
CLAAAAAAANG FORRRAMMMAAAAAT
sbSteveK edc7f7b
forgo to update jni-config for grall vm
sbSteveK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/software/amazon/awssdk/crt/mqtt5/Mqtt5PublishAcknowledgementControlHandle.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| /** | ||
| * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| * SPDX-License-Identifier: Apache-2.0. | ||
| */ | ||
| package software.amazon.awssdk.crt.mqtt5; | ||
|
|
||
| /** | ||
| * An opaque handle representing manual control over a publish acknowledgement for a received | ||
| * PUBLISH packet. | ||
| * | ||
| * <p>This class cannot be instantiated directly. Instances are only created by the CRT library.</p> | ||
| */ | ||
| public class Mqtt5PublishAcknowledgementControlHandle { | ||
|
|
||
| private final long controlId; | ||
|
|
||
| /** | ||
| * Creates a new Mqtt5PublishAcknowledgementControlHandle. | ||
| * | ||
| * @param controlId The native publish acknowledgement control ID returned by | ||
| * aws_mqtt5_client_acquire_publish_acknowledgement. | ||
| */ | ||
| Mqtt5PublishAcknowledgementControlHandle(long controlId) { | ||
| this.controlId = controlId; | ||
| } | ||
|
|
||
| /** | ||
| * Returns the native publish acknowledgement control ID, used by | ||
| * {@link Mqtt5Client#invokePublishAcknowledgement(Mqtt5PublishAcknowledgementControlHandle)} | ||
| * to pass the control ID to native code. | ||
| * | ||
| * @return The native publish acknowledgement control ID. | ||
| */ | ||
| long getControlId() { | ||
| return controlId; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.