public interface StateContext
void performActions()
void moveToEndOfSessionSyncState()
void moveToConnectedToGatewayState(boolean initialConnect)
void moveToConnectedToVenueState()
void moveToServerToClientSyncState()
void moveToClientToServerSynchronizationState()
void moveToDisconnectedState()
void moveToLogonState()
void moveToLoggingOffState()
long getNextExpectedMsgSeqNum()
void assertAndSetNextExpectedSequenceNumber(long expected,
long newValue)
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionvoid assertAndAddOneToNextExpectedSequenceNumber(long expected)
throws java.lang.IllegalStateException
expected - value the current next expected sequence number should be.java.lang.IllegalStateException - if the current next expected sequence number is not equal to the parameter value.long getNextOutgoingSequenceNumber()
void setServerData(long msgSeqNum,
long nextExpectedMsgSeqNum)
long getServerLogonResponseSequenceNumber()
boolean requiresServerToReplayMessages()
boolean requiresClientToReplayMessage()
void initiateLogout(java.lang.String reason)
void initiateLogon()
java.lang.String getCurrentStateName()
void disconnect()