public interface ChangeBus extends ChangeSetListener, Observable
Modifier and Type | Method and Description |
---|---|
boolean |
hasObservers()
Checks if there are any observers registered with the bus.
|
boolean |
registerInThread(ChangeSetListener observer)
Register the supplied observer which will be always notified in the same thread as the bus instance.
|
void |
shutdown()
Shuts down the change bus, closing and clearing resources created during
start() |
void |
start()
Starts up the change bus.
|
notify
register, unregister
void start() throws Exception
Exception
- if anything unexpected fails during startup.void shutdown()
start()
boolean hasObservers()
true
if there are any registered observers, false
otherwiseboolean registerInThread(ChangeSetListener observer)
observer
- the observer to be added; may be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.