public class LockbasedSyncListener<E> extends SyncListener<E>
ListEventListener updates another EventList so that its contents match those of a source
EventList. When updating the target EventList, this listener aquires and holds its write lock.| Constructor and Description |
|---|
LockbasedSyncListener(EventList<E> aSource,
EventList<E> aTarget)
Constructor with source and target
EventList. |
| Modifier and Type | Method and Description |
|---|---|
void |
listChanged(ListEvent<E> listChanges)
When the underlying list changes, this notification allows the
object to repaint itself or update itself as necessary.
|
disposepublic void listChanged(ListEvent<E> listChanges)
It is mandatory that the calling thread has obtained the write lock on the source list. This is because the calling thread will have written to the source list to cause this event. This condition guarantees that no writes can occur while the listener is handling this event. It is an error to write to the source list while processing an event.
listChanged in interface ListEventListener<E>listChanged in class SyncListener<E>listChanges - a ListEvent describing the changes to the listGlazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by swimmesberger at Wed Feb 13 09:45:20 CET 2019