|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IObservable
IObservable defines the interface of a mutable data
unit that can be monitored by other observers for notifications
when the mutable data is modified.
IObservable provides the external invocation method
to notify the registered observers when the mutable state is
modified. This notification is sent sequentially to all registered
observers.
IObservable provides thread safety on all the methods
by delegating thread safety to the underlying thread safe data
structures.
| Method Summary | |
|---|---|
void |
notifyUpdate()
Notify the registered observers for update. |
void |
register(IObserver observer)
Register the given observer to be notified when the state changes. |
void |
unregister(IObserver observer)
Unregister the given observer to stop notifying to it. |
| Method Detail |
|---|
void notifyUpdate()
void register(IObserver observer)
observer - The IObserver to be registered.void unregister(IObserver observer)
observer - The IObserver to be unregistered.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||