public class ClientProtocolMachine extends FSM
currentState, failChangeListeners, states, successChangeListeners| Constructor and Description |
|---|
ClientProtocolMachine(org.asynchttpclient.ws.WebSocket ws,
ClientConfiguration clientConfiguration)
Constructor of a finite state machine (FSM) implementing the IDSP protocol.
|
| Modifier and Type | Method and Description |
|---|---|
protected Transition |
makeConsumerErrorTransition(ProtocolState state,
ErrorHandler errorHandler) |
addFailChangeListener, addState, addState, addSuccessChangeListener, addTransition, feedEvent, getMetaData, getRatResult, getState, handleRatResult, reset, setInitialState, setMetaData, toDotpublic ClientProtocolMachine(org.asynchttpclient.ws.WebSocket ws,
ClientConfiguration clientConfiguration)
The FSM will be in its initial state and ready to accept messages via FSM.feedEvent()
. It will send responses over the session according to its FSM definition.
protected Transition makeConsumerErrorTransition(ProtocolState state, ErrorHandler errorHandler)