Class NoticeManager

java.lang.Object
com.wellnessapp.model.notice.NoticeManager
All Implemented Interfaces:
INoticeManager

public class NoticeManager extends Object implements INoticeManager
Manager responsible for simplifying logic to schedule notifications (notices)
See Also:
  • Constructor Details

    • NoticeManager

      public NoticeManager()
      Constructs a new NoticeManager with a timer.
  • Method Details

    • scheduleNotice

      public void scheduleNotice(LocalDateTime dateTime, NoticeBO notice)
      Schedules a notice to be executed at the specified date and time.
      Specified by:
      scheduleNotice in interface INoticeManager
      Parameters:
      dateTime - the date and time when the notice should be scheduled
      notice - the notice to be scheduled