moquette-io / moquette

Java MQTT lightweight broker
http://moquette-io.github.io/moquette/
Apache License 2.0
2.27k stars 814 forks source link

Implement subscription retain policy handling #816

Closed andsel closed 4 months ago

andsel commented 4 months ago

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

Author's Checklist

How to test this PR locally

Related issues

Use cases