public class LightblueNotificationRepository extends Object implements NotificationRepository
NotificationEntity which must be configured as an entity in
your lightblue instance. Notifications can be written using the
lightblue notification hook.| Constructor and Description |
|---|
LightblueNotificationRepository(com.redhat.lightblue.client.LightblueClient lightblue,
LightblueNotificationRepositoryConfig config,
Map<String,NotificationFactory> notificationFactoryByEntityName,
java.time.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureTransactionActive(Notification notification) |
void |
markNotificationsProcessedOrFailed(Collection<? extends Notification> notification,
Collection<FailedNotification> failures) |
List<LightblueNotification> |
retrieveOldestNotificationsUpTo(int maxNotifications) |
public LightblueNotificationRepository(com.redhat.lightblue.client.LightblueClient lightblue,
LightblueNotificationRepositoryConfig config,
Map<String,NotificationFactory> notificationFactoryByEntityName,
java.time.Clock clock)
public List<LightblueNotification> retrieveOldestNotificationsUpTo(int maxNotifications) throws Exception
retrieveOldestNotificationsUpTo in interface NotificationRepositoryExceptionpublic void ensureTransactionActive(Notification notification) throws Exception
ensureTransactionActive in interface NotificationRepositoryExceptionpublic void markNotificationsProcessedOrFailed(Collection<? extends Notification> notification, Collection<FailedNotification> failures) throws com.redhat.lightblue.client.LightblueException
markNotificationsProcessedOrFailed in interface NotificationRepositorycom.redhat.lightblue.client.LightblueExceptionCopyright © 2017. All rights reserved.