public interface IBlaubotConnectionStateMachineListener
| Modifier and Type | Method and Description |
|---|---|
void |
onStateChanged(IBlaubotState oldState,
IBlaubotState newState)
Gets called when the
ConnectionStateMachine's state changed to state. |
void |
onStateMachineStarted()
Gets called when the
ConnectionStateMachine changes it's IBlaubotState
from the StoppedState to another IBlaubotState. |
void |
onStateMachineStopped()
Gets called when the
ConnectionStateMachine stopped. |
void onStateChanged(IBlaubotState oldState, IBlaubotState newState)
ConnectionStateMachine's state changed to state.oldState - the former state (can be null)newState - the new statevoid onStateMachineStopped()
ConnectionStateMachine stopped.
This means a state change to StoppedState and is a shorthand for
public void onStateChange(IBlaubotState state) {
if(state instanceof StoppedState) {
// code
}
}void onStateMachineStarted()
ConnectionStateMachine changes it's IBlaubotState
from the StoppedState to another IBlaubotState.