Class NotificationPublisherTask
java.lang.Object
com.reallifedeveloper.common.application.notification.NotificationPublisherTask
- All Implemented Interfaces:
Runnable
A
java.lang.Runnable
that calls NotificationService.publishNotifications(String)
. It can be used for scheduling regular
publication using a timer service.- Author:
- RealLifeDeveloper
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationPublisherTask
(String publicationChannel, NotificationService notificationService) Creates a newNotificationPublishingTimerTask
that publishes to the given publication channel using the givenNotificationService
. -
Method Summary
-
Constructor Details
-
NotificationPublisherTask
public NotificationPublisherTask(String publicationChannel, NotificationService notificationService) Creates a newNotificationPublishingTimerTask
that publishes to the given publication channel using the givenNotificationService
.- Parameters:
publicationChannel
- the name of the channel to which to publishnotificationService
- theNotificationService
to use to do the actual publishing
-
-
Method Details