public interface ChannelHubManager
Modifier and Type | Method and Description |
---|---|
void |
confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids) |
void |
confirmDelivery(long companyId,
long userId,
Collection<String> notificationEventUuids,
boolean archive) |
void |
confirmDelivery(long companyId,
long userId,
String notificationEventUuid) |
void |
confirmDelivery(long companyId,
long userId,
String notificationEventUuid,
boolean archive) |
Channel |
createChannel(long companyId,
long userId) |
ChannelHub |
createChannelHub(long companyId) |
void |
deleteUserNotificiationEvent(long companyId,
long userId,
String notificationEventUuid) |
void |
deleteUserNotificiationEvents(long companyId,
long userId,
Collection<String> notificationEventUuids) |
void |
destroyChannel(long companyId,
long userId) |
void |
destroyChannelHub(long companyId) |
ChannelHub |
fetchChannelHub(long companyId) |
ChannelHub |
fetchChannelHub(long companyId,
boolean createIfAbsent) |
List<NotificationEvent> |
fetchNotificationEvents(long companyId,
long userId,
boolean flush) |
void |
flush() |
void |
flush(long companyId) |
void |
flush(long companyId,
long userId,
long timestamp) |
Channel |
getChannel(long companyId,
long userId) |
Channel |
getChannel(long companyId,
long userId,
boolean createIfAbsent) |
ChannelHub |
getChannelHub(long companyId) |
ChannelHub |
getChannelHub(long companyId,
boolean createIfAbsent) |
List<NotificationEvent> |
getNotificationEvents(long companyId,
long userId) |
List<NotificationEvent> |
getNotificationEvents(long companyId,
long userId,
boolean flush) |
Collection<Long> |
getUserIds(long companyId) |
void |
registerChannelListener(long companyId,
long userId,
ChannelListener channelListener) |
void |
removeTransientNotificationEvents(long companyId,
long userId,
Collection<NotificationEvent> notificationEvents) |
void |
removeTransientNotificationEventsByUuid(long companyId,
long userId,
Collection<String> notificationEventUuids) |
void |
sendNotificationEvent(long companyId,
long userId,
NotificationEvent notificationEvent) |
void |
sendNotificationEvents(long companyId,
long userId,
Collection<NotificationEvent> notificationEvents) |
void |
storeNotificationEvent(long companyId,
long userId,
NotificationEvent notificationEvent) |
void |
unregisterChannelListener(long companyId,
long userId,
ChannelListener channelListener) |
void confirmDelivery(long companyId, long userId, Collection<String> notificationEventUuids) throws ChannelException
ChannelException
void confirmDelivery(long companyId, long userId, Collection<String> notificationEventUuids, boolean archive) throws ChannelException
ChannelException
void confirmDelivery(long companyId, long userId, String notificationEventUuid) throws ChannelException
ChannelException
void confirmDelivery(long companyId, long userId, String notificationEventUuid, boolean archive) throws ChannelException
ChannelException
Channel createChannel(long companyId, long userId) throws ChannelException
ChannelException
ChannelHub createChannelHub(long companyId) throws ChannelException
ChannelException
void deleteUserNotificiationEvent(long companyId, long userId, String notificationEventUuid) throws ChannelException
ChannelException
void deleteUserNotificiationEvents(long companyId, long userId, Collection<String> notificationEventUuids) throws ChannelException
ChannelException
void destroyChannel(long companyId, long userId) throws ChannelException
ChannelException
void destroyChannelHub(long companyId) throws ChannelException
ChannelException
ChannelHub fetchChannelHub(long companyId) throws ChannelException
ChannelException
ChannelHub fetchChannelHub(long companyId, boolean createIfAbsent) throws ChannelException
ChannelException
List<NotificationEvent> fetchNotificationEvents(long companyId, long userId, boolean flush) throws ChannelException
ChannelException
void flush() throws ChannelException
ChannelException
void flush(long companyId) throws ChannelException
ChannelException
void flush(long companyId, long userId, long timestamp) throws ChannelException
ChannelException
Channel getChannel(long companyId, long userId) throws ChannelException
ChannelException
Channel getChannel(long companyId, long userId, boolean createIfAbsent) throws ChannelException
ChannelException
ChannelHub getChannelHub(long companyId) throws ChannelException
ChannelException
ChannelHub getChannelHub(long companyId, boolean createIfAbsent) throws ChannelException
ChannelException
List<NotificationEvent> getNotificationEvents(long companyId, long userId) throws ChannelException
ChannelException
List<NotificationEvent> getNotificationEvents(long companyId, long userId, boolean flush) throws ChannelException
ChannelException
Collection<Long> getUserIds(long companyId) throws ChannelException
ChannelException
void registerChannelListener(long companyId, long userId, ChannelListener channelListener) throws ChannelException
ChannelException
void removeTransientNotificationEvents(long companyId, long userId, Collection<NotificationEvent> notificationEvents) throws ChannelException
ChannelException
void removeTransientNotificationEventsByUuid(long companyId, long userId, Collection<String> notificationEventUuids) throws ChannelException
ChannelException
void sendNotificationEvent(long companyId, long userId, NotificationEvent notificationEvent) throws ChannelException
ChannelException
void sendNotificationEvents(long companyId, long userId, Collection<NotificationEvent> notificationEvents) throws ChannelException
ChannelException
void storeNotificationEvent(long companyId, long userId, NotificationEvent notificationEvent) throws ChannelException
ChannelException
void unregisterChannelListener(long companyId, long userId, ChannelListener channelListener) throws ChannelException
ChannelException