You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Watcher class will use the SchedulerExecutorService to call a Reminder's notify method on its specific time interval. (see #3) It will do setup this repeated call in a method called schedule(reminderObject).
The Watcher class will also feature a stop(reminder) method, but that will be subject to change depending on how the Reminder object evolves to send notifications to the main driver class.
The text was updated successfully, but these errors were encountered:
Basic scheduling is in. Every timeInterval seconds, the scheduled reminder's remind() method is called on of the available threads. The neat benefit of the scheduledThreadPool is that if a thread is idle or fails, the program doesn't come to a halt.
Missing:
cancelReminder(Reminder reminder) method which cancels a scheduled reminder by pulling it from activeReminders and using createRunnableCancelFor() to schedule an immediate cancellation
The Watcher class will use the SchedulerExecutorService to call a Reminder's notify method on its specific time interval. (see #3) It will do setup this repeated call in a method called
schedule(reminderObject)
.Relevant docs for SchedulerExecutorService: https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ScheduledExecutorService.html
The Watcher class will also feature a
stop(reminder)
method, but that will be subject to change depending on how the Reminder object evolves to send notifications to the main driver class.The text was updated successfully, but these errors were encountered: