public abstract class AbstractPushDispatcher extends Object implements IPushDispatcher, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractPushDispatcher.PushResult |
protected static class |
AbstractPushDispatcher.PushResultMessage |
| Constructor and Description |
|---|
AbstractPushDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
dispatch(Notification notification) |
void |
dispatchNow(Notification notification) |
protected IDispatchService |
getDispatchService() |
protected INotifyService.IErrorListener |
getErrorListener() |
protected int |
getMaxErrorCount() |
protected INotificationDAO |
getNotificationDAO() |
protected IPreferencesDAO |
getPreferencesDAO() |
protected Set<IPushChannel> |
getPushChannels() |
Map<String,IPushChannelPreferences> |
newDefaultPreferences() |
void |
setDispatchService(IDispatchService dispatchService) |
void |
setErrorListener(INotifyService.IErrorListener errorListener) |
void |
setMaxErrorCount(int maxErrorCount) |
void |
setNotificationDAO(INotificationDAO notificationDAO) |
void |
setPreferencesDAO(IPreferencesDAO preferencesDAO) |
void |
setPushChannels(Set<IPushChannel> pushChannels) |
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void dispatchNow(Notification notification) throws INotifyService.NotifyException
dispatchNow in interface IPushDispatcherINotifyService.NotifyException - if all channels failed to dispatch a
notification.protected void dispatch(@Nonnull Notification notification)
public void setErrorListener(INotifyService.IErrorListener errorListener)
setErrorListener in interface IPushDispatcherpublic Map<String,IPushChannelPreferences> newDefaultPreferences()
newDefaultPreferences in interface IPushDispatcherpublic void setDispatchService(IDispatchService dispatchService)
public void setPreferencesDAO(IPreferencesDAO preferencesDAO)
public void setPushChannels(Set<IPushChannel> pushChannels)
public void setMaxErrorCount(int maxErrorCount)
public void setNotificationDAO(INotificationDAO notificationDAO)
protected Set<IPushChannel> getPushChannels()
protected INotifyService.IErrorListener getErrorListener()
protected IDispatchService getDispatchService()
protected IPreferencesDAO getPreferencesDAO()
protected INotificationDAO getNotificationDAO()
protected int getMaxErrorCount()
Copyright © 2014 Molindo GmbH. All Rights Reserved.