Class AbstractNotificationPollingService
- java.lang.Object
-
- org.cxbox.notifications.service.impl.AbstractNotificationPollingService
-
- All Implemented Interfaces:
EventListener,org.cxbox.api.system.ISystemSettingChangeEventListener,INotificationPollingService,org.springframework.context.ApplicationListener<org.cxbox.api.system.SystemSettingChangedEvent>
- Direct Known Subclasses:
NotificationDeltaPollingService,NotificationInitialPollingService
public class AbstractNotificationPollingService extends Object implements org.cxbox.api.system.ISystemSettingChangeEventListener, INotificationPollingService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cxbox.notifications.service.INotificationPollingService
INotificationPollingService.NotificationCtrlDTO
-
-
Constructor Summary
Constructors Constructor Description AbstractNotificationPollingService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.context.request.async.DeferredResult<ResponseDTO>addTaskInQueue(Long recipientId, Long latestNotificationId, boolean unread)voidexecutePollTaskInQueue()protected voidinit()voidonApplicationEvent(org.cxbox.api.system.SystemSettingChangedEvent event)
-
-
-
Method Detail
-
init
@PostConstruct protected void init()
-
onApplicationEvent
public void onApplicationEvent(org.cxbox.api.system.SystemSettingChangedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.cxbox.api.system.SystemSettingChangedEvent>- Specified by:
onApplicationEventin interfaceorg.cxbox.api.system.ISystemSettingChangeEventListener
-
addTaskInQueue
public org.springframework.web.context.request.async.DeferredResult<ResponseDTO> addTaskInQueue(Long recipientId, Long latestNotificationId, boolean unread)
- Specified by:
addTaskInQueuein interfaceINotificationPollingService
-
executePollTaskInQueue
@Scheduled(fixedRate=1000L) public void executePollTaskInQueue()
-
-