Class NotificationPublisherTask

java.lang.Object
com.reallifedeveloper.common.application.notification.NotificationPublisherTask
All Implemented Interfaces:
Runnable

public final class NotificationPublisherTask extends Object implements 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 Details

    • NotificationPublisherTask

      public NotificationPublisherTask(String publicationChannel, NotificationService notificationService)
      Creates a new NotificationPublishingTimerTask that publishes to the given publication channel using the given NotificationService.
      Parameters:
      publicationChannel - the name of the channel to which to publish
      notificationService - the NotificationService to use to do the actual publishing
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable