public interface Channel
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
void |
close() |
void |
confirmDelivery(Collection<String> notificationEventUuids) |
void |
confirmDelivery(Collection<String> notificationEventUuids,
boolean archive) |
void |
confirmDelivery(String notificationEventUuid) |
void |
confirmDelivery(String notificationEventUuid,
boolean archive) |
void |
deleteUserNotificiationEvent(String notificationEventUuid) |
void |
deleteUserNotificiationEvents(Collection<String> notificationEventUuids) |
void |
flush() |
void |
flush(long timestamp) |
List<NotificationEvent> |
getNotificationEvents() |
List<NotificationEvent> |
getNotificationEvents(boolean flush) |
long |
getUserId() |
void |
init() |
void |
registerChannelListener(ChannelListener channelListener) |
void |
removeTransientNotificationEvents(Collection<NotificationEvent> notificationEvents) |
void |
removeTransientNotificationEventsByUuid(Collection<String> notificationEventUuids) |
void |
sendNotificationEvent(NotificationEvent notificationEvent) |
void |
sendNotificationEvents(Collection<NotificationEvent> notificationEvents) |
void |
storeNotificationEvent(NotificationEvent notificationEvent,
long currentTime) |
void |
unregisterChannelListener(ChannelListener channelListener) |
void cleanUp() throws ChannelException
ChannelException
void close() throws ChannelException
ChannelException
void confirmDelivery(Collection<String> notificationEventUuids) throws ChannelException
ChannelException
void confirmDelivery(Collection<String> notificationEventUuids, boolean archive) throws ChannelException
ChannelException
void confirmDelivery(String notificationEventUuid) throws ChannelException
ChannelException
void confirmDelivery(String notificationEventUuid, boolean archive) throws ChannelException
ChannelException
void deleteUserNotificiationEvent(String notificationEventUuid) throws ChannelException
ChannelException
void deleteUserNotificiationEvents(Collection<String> notificationEventUuids) throws ChannelException
ChannelException
void flush() throws ChannelException
ChannelException
void flush(long timestamp) throws ChannelException
ChannelException
List<NotificationEvent> getNotificationEvents() throws ChannelException
ChannelException
List<NotificationEvent> getNotificationEvents(boolean flush) throws ChannelException
ChannelException
long getUserId()
void init() throws ChannelException
ChannelException
void registerChannelListener(ChannelListener channelListener)
void removeTransientNotificationEvents(Collection<NotificationEvent> notificationEvents)
void removeTransientNotificationEventsByUuid(Collection<String> notificationEventUuids)
void sendNotificationEvent(NotificationEvent notificationEvent) throws ChannelException
ChannelException
void sendNotificationEvents(Collection<NotificationEvent> notificationEvents) throws ChannelException
ChannelException
void storeNotificationEvent(NotificationEvent notificationEvent, long currentTime) throws ChannelException
ChannelException
void unregisterChannelListener(ChannelListener channelListener)