| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.ken.service.impl.ConcurrentJob<NotificationMessageDelivery>
org.kuali.rice.ken.service.impl.NotificationMessageDeliveryAutoRemovalServiceImpl
public class NotificationMessageDeliveryAutoRemovalServiceImpl
Auto removes expired message deliveries.
| Field Summary | 
|---|
| Fields inherited from class org.kuali.rice.ken.service.impl.ConcurrentJob | 
|---|
| executor, LOG, txManager | 
| Constructor Summary | |
|---|---|
| NotificationMessageDeliveryAutoRemovalServiceImpl(GenericDao businessObjectDao,
                                                                                                   org.springframework.transaction.PlatformTransactionManager txManager,
                                                                                                   ExecutorService executor,
                                                                                                   NotificationMessageDeliveryService messageDeliveryService)Constructs a NotificationMessageDeliveryDispatchServiceImpl instance. | |
| Method Summary | |
|---|---|
| protected  Collection<String> | autoRemove(NotificationMessageDeliverer messageDeliverer,
                     NotificationMessageDelivery messageDelivery)Auto-removes a single message delivery | 
| protected  void | markAutoRemoved(NotificationMessageDelivery messageDelivery)Marks a MessageDelivery as having been auto-removed, and unlocks it | 
|  ProcessingResult | processAutoRemovalOfDeliveredNotificationMessageDeliveries()This implementation looks up all UNDELIVERED/DELIVERED message deliveries with an autoRemoveDateTime <= current date time and then iterates over each to call the appropriate functions to do the "auto-removal" by "canceling" each associated notification workflow document. | 
| protected  Collection<String> | processWorkItems(Collection<NotificationMessageDelivery> messageDeliveries)Template method that subclasses should override to process a given work item and mark it as untaken afterwards | 
| protected  Collection<NotificationMessageDelivery> | takeAvailableWorkItems()Template method that subclasses should override to obtain a set of available work items and mark them as taken | 
| protected  void | unlockWorkItem(NotificationMessageDelivery delivery)Template method that subclasses should override to unlock a given work item when procesing has failed. | 
| Methods inherited from class org.kuali.rice.ken.service.impl.ConcurrentJob | 
|---|
| createNewTransaction, groupWorkItems, run, unlockWorkItemAtomically | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public NotificationMessageDeliveryAutoRemovalServiceImpl(GenericDao businessObjectDao,
                                                         org.springframework.transaction.PlatformTransactionManager txManager,
                                                         ExecutorService executor,
                                                         NotificationMessageDeliveryService messageDeliveryService)
businessObjectDao - txManager - executor - messageDeliveryRegistryService - | Method Detail | 
|---|
protected Collection<NotificationMessageDelivery> takeAvailableWorkItems()
ConcurrentJob
takeAvailableWorkItems in class ConcurrentJob<NotificationMessageDelivery>ConcurrentJob.takeAvailableWorkItems()protected Collection<String> processWorkItems(Collection<NotificationMessageDelivery> messageDeliveries)
ConcurrentJob
processWorkItems in class ConcurrentJob<NotificationMessageDelivery>messageDeliveries - the work item
org.kuali.rice.ken.service.impl.ConcurrentJob#processWorkItem(java.lang.Object)
protected Collection<String> autoRemove(NotificationMessageDeliverer messageDeliverer,
                                        NotificationMessageDelivery messageDelivery)
messageDeliverer - the message deliverermessageDelivery - the message delivery to auto-remove
protected void markAutoRemoved(NotificationMessageDelivery messageDelivery)
messageDelivery - the messageDelivery instance to markprotected void unlockWorkItem(NotificationMessageDelivery delivery)
ConcurrentJob
unlockWorkItem in class ConcurrentJob<NotificationMessageDelivery>delivery - the work item to unlockConcurrentJob.unlockWorkItem(java.lang.Object)public ProcessingResult processAutoRemovalOfDeliveredNotificationMessageDeliveries()
processAutoRemovalOfDeliveredNotificationMessageDeliveries in interface NotificationMessageDeliveryAutoRemovalServiceorg.kuali.rice.ken.service.NotificationMessageDeliveryDispatchService#processAutoRemovalOfDeliveredNotificationMessageDeliveries()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||