public class NotificationMessageDeliveryResolverServiceImpl extends ConcurrentJob<NotificationBo> implements NotificationMessageDeliveryResolverService
executor, txManager| Constructor and Description |
|---|
NotificationMessageDeliveryResolverServiceImpl(NotificationService notificationService,
NotificationRecipientService notificationRecipientService,
DataObjectService dataObjectService,
org.springframework.transaction.PlatformTransactionManager txManager,
ExecutorService executor)
Constructs a NotificationMessageDeliveryDispatchServiceImpl instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Object> |
processWorkItems(Collection<NotificationBo> notifications)
Generates all message deliveries for a given notification and save thems to the database.
|
ProcessingResult |
resolveNotificationMessageDeliveries()
This method is responsible for resolving the list of NotificationMessageDelivery records for a given notification.
|
protected Collection<NotificationBo> |
takeAvailableWorkItems()
Obtains and marks as taken all unresolved (and untaken) notifications
|
protected void |
unlockWorkItem(NotificationBo notification)
Template method that subclasses should override to unlock a given work item when procesing has failed.
|
createNewTransaction, groupWorkItems, run, unlockWorkItemAtomicallypublic NotificationMessageDeliveryResolverServiceImpl(NotificationService notificationService, NotificationRecipientService notificationRecipientService, DataObjectService dataObjectService, org.springframework.transaction.PlatformTransactionManager txManager, ExecutorService executor)
notificationRecipientService - dataObjectService - txManager - executor - protected Collection<NotificationBo> takeAvailableWorkItems()
takeAvailableWorkItems in class ConcurrentJob<NotificationBo>protected Collection<Object> processWorkItems(Collection<NotificationBo> notifications)
processWorkItems in class ConcurrentJob<NotificationBo>notifications - the Notification for which to generate message deliveriesprotected void unlockWorkItem(NotificationBo notification)
ConcurrentJobunlockWorkItem in class ConcurrentJob<NotificationBo>notification - the work item to unlockConcurrentJob.unlockWorkItem(java.lang.Object)public ProcessingResult resolveNotificationMessageDeliveries()
resolveNotificationMessageDeliveries in interface NotificationMessageDeliveryResolverServiceNotificationMessageDeliveryResolverService.resolveNotificationMessageDeliveries()Copyright © 2005–2015 The Kuali Foundation. All rights reserved.