org.oddjob.beanbus.mega
Class StatefulBusConductorAdapter
java.lang.Object
org.oddjob.beanbus.AbstractBusConductor
org.oddjob.beanbus.mega.StatefulBusConductorAdapter
- All Implemented Interfaces:
- BusConductor
public class StatefulBusConductorAdapter
- extends AbstractBusConductor
- implements BusConductor
Adapts a Stateful
into a .
- Author:
- rob
Method Summary |
void |
cleanBus()
Cleaning the bus will cause the trip to end and a new one to
begin. |
void |
close()
Must be called to remove listener. |
void |
requestBusStop()
Request that the bus stop. |
String |
toString()
|
StatefulBusConductorAdapter
public StatefulBusConductorAdapter(Stateful stateful)
cleanBus
public void cleanBus()
throws BusCrashException
- Description copied from interface:
BusConductor
- 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.
- Specified by:
cleanBus
in interface BusConductor
- Throws:
BusCrashException
requestBusStop
public void requestBusStop()
- Description copied from interface:
BusConductor
- Request that the bus stop. This may, and probably will,
be called asynchronously.
- Specified by:
requestBusStop
in interface BusConductor
close
public void close()
- Must be called to remove listener.
toString
public String toString()
- Specified by:
toString
in class AbstractBusConductor