moquette-io / moquette

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

Generalize ExpirableTracker to become an scheduler service #785

Closed andsel closed 8 months ago

andsel commented 8 months ago

In PR #770 were introduced ISessionsRepository.Expirable and PostOffice.ExpirableTracker plus a scheduler task to handle expiration of objects. Generalize this into a scheduler that can be used also to handle Session expiration, better would be a global service where expirable actions can be executed on the object at the instant that expires.