Modify SubscriptionDirectory's add methods to return the indication of the fact that the subscription was freshly created.
Updates forwarding of retained messages during subscription processing to apply the three retained policies.
Why is it important/What is the impact to the user?
Implement the retained policy option of subscription request.
Checklist
[x] My code follows the style guidelines of this project
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have made corresponding change to the default configuration files (and/or docker env variables)
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have updated the Changelog if it's a feature or a fix that has to be reported
Release notes
Implements subscription options retains handling policies.
What does this PR do?
Modify SubscriptionDirectory's add methods to return the indication of the fact that the subscription was freshly created. Updates forwarding of retained messages during subscription processing to apply the three retained policies.
Why is it important/What is the impact to the user?
Implement the retained policy option of subscription request.
Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files (and/or docker env variables)Author's Checklist
How to test this PR locally
Related issues
Use cases