public final class RedisNotificationPlugin extends Object implements NotificationPlugin
| Constructor and Description |
|---|
RedisNotificationPlugin(RedisConnector redisConnector)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Notification> |
getCurrentNotifications(io.vertigo.dynamo.domain.model.URI<Account> accountURI) |
void |
remove(io.vertigo.dynamo.domain.model.URI<Account> accountURI,
UUID notificationUUID) |
void |
removeAll(String type,
String targetUrl) |
void |
send(NotificationEvent notificationEvent) |
@Inject public RedisNotificationPlugin(RedisConnector redisConnector)
redisConnector - the connector to REDIS databasepublic void send(NotificationEvent notificationEvent)
send in interface NotificationPluginnotificationEvent - Notification to sendpublic List<Notification> getCurrentNotifications(io.vertigo.dynamo.domain.model.URI<Account> accountURI)
getCurrentNotifications in interface NotificationPluginaccountURI - Accout uripublic void remove(io.vertigo.dynamo.domain.model.URI<Account> accountURI, UUID notificationUUID)
remove in interface NotificationPluginaccountURI - Account urinotificationUUID - Notification uuidpublic void removeAll(String type, String targetUrl)
removeAll in interface NotificationPlugintype - Notification's typetargetUrl - Target URL, use to filter all notifications to removeCopyright © 2017. All Rights Reserved.