ModeShape Distribution 3.1.0.Final

org.modeshape.jcr.bus
Interface ChangeBus

All Superinterfaces:
ChangeSetListener, Observable
All Known Implementing Classes:
ClusteredRepositoryChangeBus, RepositoryChangeBus

public interface ChangeBus
extends ChangeSetListener, Observable

A generic interface for an event bus which handles changes.


Method Summary
 boolean hasObservers()
          Checks if there are any observers registered with the bus.
 void shutdown()
          Shuts down the change bus, closing and clearing resources created during start()
 void start()
          Starts up the change bus.
 
Methods inherited from interface org.modeshape.jcr.cache.change.ChangeSetListener
notify
 
Methods inherited from interface org.modeshape.jcr.cache.change.Observable
register, unregister
 

Method Detail

start

void start()
           throws Exception
Starts up the change bus.

Throws:
Exception - if anything unexpected fails during startup.

shutdown

void shutdown()
Shuts down the change bus, closing and clearing resources created during start()


hasObservers

boolean hasObservers()
Checks if there are any observers registered with the bus.

Returns:
true if there are any registered observers, false otherwise

ModeShape Distribution 3.1.0.Final

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