org.oddjob.beanbus
Interface BusConductor

All Known Implementing Classes:
AbstractBusConductor, BusConductorFilter, StatefulBusConductorAdapter

public interface BusConductor

Provides co-ordination for a BeanBus.

Author:
rob

Method Summary
 void addBusListener(BusListener listener)
          Add a listener.
 void cleanBus()
          Cleaning the bus will cause the trip to end and a new one to begin.
 void removeBusListener(BusListener listener)
          Remove the listener.
 void requestBusStop()
          Request that the bus stop.
 

Method Detail

cleanBus

void cleanBus()
              throws BusCrashException
Cleaning the bus will cause the trip to end and a new one to begin. Intended for components such as Batcher so that they can flush the bus.

Throws:
BusCrashException

requestBusStop

void requestBusStop()
Request that the bus stop. This may, and probably will, be called asynchronously.


addBusListener

void addBusListener(BusListener listener)
Add a listener.

Parameters:
listener - The listener.

removeBusListener

void removeBusListener(BusListener listener)
Remove the listener.

Parameters:
listener - The listener.