public class Synchronizer<T> extends java.lang.Object implements NotificationListener<T>
During the synchronisation phase any asynchronous events are queued and processed after synchronisation. Duplicates are detected by the notification number and removed.
Constructor and Description |
---|
Synchronizer(NotificationListener<T> listener) |
Modifier and Type | Method and Description |
---|---|
void |
handleNotification(Notification<T> notification)
Handle a notification.
|
void |
synchronize(java.util.List<Notification<T>> last)
Synchronous synchronisation with notifications.
|
void |
synchronize(Notification<T> last) |
void |
synchronize(Notification<T>[] last) |
public Synchronizer(NotificationListener<T> listener)
public void handleNotification(Notification<T> notification)
NotificationListener
handleNotification
in interface NotificationListener<T>
notification
- The notification.public final void synchronize(Notification<T> last)
public final void synchronize(Notification<T>[] last)
public final void synchronize(java.util.List<Notification<T>> last)
last
- The last notifications.