At the moment I'm struggling with the decent way of implementing the email notification. Would it be a good solution to implement separate thread with ScheduledExecutorService in the class, which schedule sending emails in fixed intervals (0,5 or 1h should be reasonably). Method will send all the emails, previously filtered by the date.
Is it a good approach?
At the moment I'm struggling with the decent way of implementing the email notification. Would it be a good solution to implement separate thread with ScheduledExecutorService in the class, which schedule sending emails in fixed intervals (0,5 or 1h should be reasonably). Method will send all the emails, previously filtered by the date.
Is it a good approach?