Class JoinMessageArrivedState
- java.lang.Object
-
- com.thecoderscorner.menu.remote.states.BaseMessageProcessingState
-
- com.thecoderscorner.menu.remote.states.JoinMessageArrivedState
-
- All Implemented Interfaces:
RemoteConnectorState
public class JoinMessageArrivedState extends BaseMessageProcessingState
-
-
Field Summary
-
Fields inherited from class com.thecoderscorner.menu.remote.states.BaseMessageProcessingState
context, disconnectInterval, lastReception, logger
-
-
Constructor Summary
Constructors Constructor Description JoinMessageArrivedState(RemoteConnectorContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanSendCommandToRemote(MenuCommand command)called before any command is sent in order for the state to disallowvoidenterState()called when a state machine class becomes activeAuthStatusgetAuthenticationStatus()protected booleanprocessMessage(MenuCommand cmd)protected voidprocessTimeout()-
Methods inherited from class com.thecoderscorner.menu.remote.states.BaseMessageProcessingState
checkIfThereIsAnHbEnd, exitState, markDone
-
-
-
-
Constructor Detail
-
JoinMessageArrivedState
public JoinMessageArrivedState(RemoteConnectorContext context)
-
-
Method Detail
-
enterState
public void enterState()
Description copied from interface:RemoteConnectorStatecalled when a state machine class becomes active- Specified by:
enterStatein interfaceRemoteConnectorState- Overrides:
enterStatein classBaseMessageProcessingState
-
processTimeout
protected void processTimeout()
- Specified by:
processTimeoutin classBaseMessageProcessingState
-
processMessage
protected boolean processMessage(MenuCommand cmd)
- Specified by:
processMessagein classBaseMessageProcessingState
-
getAuthenticationStatus
public AuthStatus getAuthenticationStatus()
- Returns:
- the current authentication status as determined by the state.
-
canSendCommandToRemote
public boolean canSendCommandToRemote(MenuCommand command)
Description copied from interface:RemoteConnectorStatecalled before any command is sent in order for the state to disallow- Parameters:
command- the command to check- Returns:
- true to send, false to suppress.
-
-