org.lsst.ccs.utilities.dispatch
Class SynchronousObservable<P>
java.lang.Object
org.lsst.ccs.utilities.dispatch.SynchronousObservable<P>
public class SynchronousObservable<P>
- extends Object
An Observable with protocol control at compile time.
The update are processed in sequence.
- Author:
- bernard Amade
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
list
protected CopyOnWriteArrayList<SynchronousObserver<P>> list
SynchronousObservable
public SynchronousObservable()
addObserver
public void addObserver(SynchronousObserver<P> observer)
removeObserver
public void removeObserver(SynchronousObserver<P> observer)
notifyObservers
public void notifyObservers(P protocol)
- do not need a call to setChanged: observers
are immediately notified.
- Parameters:
protocol -
Copyright © 2012 LSST. All Rights Reserved.