Public Member Functions | |
ConnectionHasFailedState (RemoteConnectorContext context) | |
void | enterState () |
void | exitState (RemoteConnectorState nextState) |
AuthStatus | getAuthenticationStatus () |
boolean | canSendCommandToRemote (MenuCommand command) |
void | runLoop () throws Exception |
boolean com.thecoderscorner.menu.remote.states.ConnectionHasFailedState.canSendCommandToRemote | ( | MenuCommand | command | ) |
called before any command is sent in order for the state to disallow
command | the command to check |
Implements com.thecoderscorner.menu.remote.states.RemoteConnectorState.
void com.thecoderscorner.menu.remote.states.ConnectionHasFailedState.enterState | ( | ) |
called when a state machine class becomes active
Implements com.thecoderscorner.menu.remote.states.RemoteConnectorState.
void com.thecoderscorner.menu.remote.states.ConnectionHasFailedState.exitState | ( | RemoteConnectorState | nextState | ) |
called when a state machine class is deactivated
Implements com.thecoderscorner.menu.remote.states.RemoteConnectorState.
AuthStatus com.thecoderscorner.menu.remote.states.ConnectionHasFailedState.getAuthenticationStatus | ( | ) |
Implements com.thecoderscorner.menu.remote.states.RemoteConnectorState.
void com.thecoderscorner.menu.remote.states.ConnectionHasFailedState.runLoop | ( | ) | throws Exception |
called when a state is the current state, the state can read messages and attempt connections in this loop. It must be returned once the state is exited to avoid deadlocking the API. Exceptions can be thrown by the loop safely and will be logged in the connection logic.
Implements com.thecoderscorner.menu.remote.states.RemoteConnectorState.