public interface NotificationRepository
Notifications.| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | NotificationRepository.NotificationRemover | 
| Modifier and Type | Method and Description | 
|---|---|
| List<Notification> | findNewerThan(NotificationId id)Returns each  Notificationthat is newer than, i.e. | 
| NotificationId | getLastNotificationId()Returns the id of the newest  Notificationornullif the repository is empty. | 
| void | remove(NotificationRepository.NotificationRemover remover)Provides access to an  Iteratorthat can be used to remove individual notifications. | 
NotificationId getLastNotificationId()
Notification or null if the repository is empty.List<Notification> findNewerThan(NotificationId id)
Notification that is newer than, i.e. happened after, a provided notification.
 
 Clients waiting for new notifications are notified (Object.notifyAll()) when new
 notifications are available.
id - a NotificationId or null to list each notificationvoid remove(NotificationRepository.NotificationRemover remover)
Iterator that can be used to remove individual notifications.Copyright © 2004-2011. All Rights Reserved.