public class StatefulBusConductorAdapter extends AbstractBusConductor implements BusConductor
Stateful
into a .Constructor and Description |
---|
StatefulBusConductorAdapter(Stateful stateful) |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString() |
addBusListener, fireBusCrashed, fireBusStarting, fireBusStopping, fireBusStopRequested, fireBusTerminated, fireTripBeginning, fireTripEnding, removeBusListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addBusListener, removeBusListener
public StatefulBusConductorAdapter(Stateful stateful)
public void cleanBus() throws BusCrashException
BusConductor
Batcher
so that
they can flush the bus.cleanBus
in interface BusConductor
BusCrashException
public void requestBusStop()
BusConductor
requestBusStop
in interface BusConductor
public void close()
public java.lang.String toString()
toString
in class AbstractBusConductor