java.lang.Object
java.util.TimerTask
com.wellnessapp.model.notice.NoticeTask
- All Implemented Interfaces:
Runnable
NoticeTask is a TimerTask implementation that displays notifications based on a NoticeBO.
-
Constructor Summary
ConstructorDescriptionNoticeTask
(NoticeBO notice) Constructs a NoticeTask with the provided NoticeBO. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Runs the task, displaying a notification with the notice's title and text.Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
NoticeTask
Constructs a NoticeTask with the provided NoticeBO.- Parameters:
notice
- The NoticeBO containing title and text for the notification.
-
-
Method Details