Package com.ehealthsystem.reminder
Class ReminderTask
java.lang.Object
java.util.TimerTask
com.ehealthsystem.reminder.ReminderTask
- All Implemented Interfaces:
Runnable
An object of this class represents a task to send a reminder mail at a certain point in the future.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionReminderTask
(Appointment appointment) Create a new ReminderTask for an appointment. -
Method Summary
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
appointment
Appointment appointment
-
-
Constructor Details
-
ReminderTask
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