org.modeshape.graph.observe
Interface ObservationBus

All Superinterfaces:
Observable, Observer
All Known Implementing Classes:
ClusteredObservationBus, ClusteringService, LocalObservationBus

@ThreadSafe
public interface ObservationBus
extends Observable, Observer

A simple Observer that is itself Observable. This interface essentially multiplexes the events from a single Observable to disseminate each event to multiple Observers.


Method Summary
 boolean hasObservers()
          Determine whether this particular bus currently has any observers.
 void shutdown()
          Unregister all registered observers, and mark this as no longer accepting new registered observers.
 void start()
          Prepare this bus for operation by starting any resources.
 
Methods inherited from interface org.modeshape.graph.observe.Observable
register, unregister
 
Methods inherited from interface org.modeshape.graph.observe.Observer
notify
 

Method Detail

start

void start()
Prepare this bus for operation by starting any resources.


hasObservers

boolean hasObservers()
Determine whether this particular bus currently has any observers.

Returns:
true if there is at least one observer, or false otherwise

shutdown

void shutdown()
Unregister all registered observers, and mark this as no longer accepting new registered observers.



Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.