This reverts PR #1807 to use a LinkedHashMap for outstandingReceipts and adds the synchronized keyword to notifyAckSuccess, notifyAckFailed, and processReceivedMessages in order to ensure message ordering is honored when exactly once delivery is enabled.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- Ensure the tests and linter pass
- Code coverage does not decrease (if any source code was changed)
- Appropriate docs were updated (if necessary)
Fixes #1889 ☕️
If you write sample code, please follow the samples format.