public class DummyChannel extends AbstractPullChannel implements IDummyChannel
IPushChannel.PushExceptionIPullChannel.PullException| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHANNEL_ID |
AMOUNT, DEFAULT_AMOUNT, MAX_AMOUNT, SECRET| Constructor and Description |
|---|
DummyChannel() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
Dispatch |
getLastDispatch() |
com.google.common.collect.ImmutableSet<Notification.Type> |
getNotificationTypes() |
boolean |
isConfigured(Params params) |
PushChannelPreferences |
newDefaultPreferences()
create default preferences for this channel
|
protected String |
pull(List<Message> messages,
Date lastModified,
IChannelPreferences cPrefs,
IPreferences prefs) |
void |
push(Dispatch dispatch)
deliver notification
|
DummyChannel |
setId(String id) |
getDefaultAmount, isAuthorized, pull, render, setDefaultAmount, setDispatchService, setNotificationDAO, setNotificationRenderService, setPreferencesDAOclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAuthorized, pullpublic static final String DEFAULT_CHANNEL_ID
public DummyChannel setId(String id)
public com.google.common.collect.ImmutableSet<Notification.Type> getNotificationTypes()
getNotificationTypes in interface IChannelpublic boolean isConfigured(Params params)
isConfigured in interface IChannelisConfigured in class AbstractPullChannelpublic PushChannelPreferences newDefaultPreferences()
IChannelnewDefaultPreferences in interface IChannelnewDefaultPreferences in interface IPushChannelnewDefaultPreferences in class AbstractPullChannelpublic void push(Dispatch dispatch) throws IPushChannel.PushException
IPushChannelpush in interface IPushChannelIPushChannel.PushException - if delivery failedpublic Dispatch getLastDispatch()
getLastDispatch in interface IDummyChannelprotected String pull(List<Message> messages, Date lastModified, IChannelPreferences cPrefs, IPreferences prefs) throws IPullChannel.PullException
pull in class AbstractPullChannelIPullChannel.PullExceptionCopyright © 2015 Molindo GmbH. All Rights Reserved.