|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.graph.observe.ChangeObservers
@ThreadSafe public class ChangeObservers
Reusable manager of change listeners, typically employed by another Observable
implementation.
Constructor Summary | |
---|---|
ChangeObservers()
|
Method Summary | |
---|---|
void |
broadcast(Changes changes)
Broadcast the supplied changes to the registered observers. |
boolean |
isEmpty()
Determine whether there are any observers at the time this method is called. |
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 ChangeObservers()
Method Detail |
---|
public boolean register(Observer observer)
register
in interface Observable
observer
- the observer to be added; may be null
Observable.register(org.jboss.dna.graph.observe.Observer)
public boolean unregister(Observer observer)
unregister
in interface Observable
observer
- the observer to be removed; may not be null
Observable.unregister(org.jboss.dna.graph.observe.Observer)
public void shutdown()
public boolean isEmpty()
public void broadcast(Changes changes)
changes
- the changes to broadcast
IllegalArgumentException
- if the changes reference is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |