|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.graph.observe.ObservationBus
@ThreadSafe public class ObservationBus

A simple Observer that is itself Observable. This class essentially multiplexes the events from a single
Observable to disseminate each event to multiple Observers.
| Constructor Summary | |
|---|---|
ObservationBus()
|
|
| Method Summary | |
|---|---|
boolean |
hasObservers()
Determine whether this particular bus currently has any observers. |
void |
notify(Changes changes)
Method that is called for each set of changes from the Observable instance(s) with which this
observer is registered. |
boolean |
register(Observer observer)
Register the supplied observer. |
void |
shutdown()
Unregister all registered observers, and mark this as no longer accepting new registered observers. |
boolean |
unregister(Observer observer)
Unregister the supplied observer. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObservationBus()
| Method Detail |
|---|
public boolean register(Observer observer)
register in interface Observableobserver - the observer to be added; may be null
Observable.register(org.jboss.dna.graph.observe.Observer)public boolean unregister(Observer observer)
unregister in interface Observableobserver - the observer to be removed; may not be null
Observable.unregister(org.jboss.dna.graph.observe.Observer)public void notify(Changes changes)
set of changes from the Observable instance(s) with which this
observer is registered.
notify in interface Observerchanges - the changes that are being publishedObserver.notify(org.jboss.dna.graph.observe.Changes)public boolean hasObservers()
public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||