Class ReminderTask

java.lang.Object
java.util.TimerTask
com.ehealthsystem.reminder.ReminderTask
All Implemented Interfaces:
Runnable

public class ReminderTask extends TimerTask
An object of this class represents a task to send a reminder mail at a certain point in the future.
  • Field Details

  • Constructor Details

    • ReminderTask

      public ReminderTask(Appointment appointment)
      Create a new ReminderTask for an appointment. The reminder time is automatically read out from the provided appointment.
      Parameters:
      appointment - the appointment for which a reminder is to be sent
  • Method Details

    • run

      public void run()
      The method to be executed at the reminder time. Responsible for sending the reminder email.
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask