Package io.odysz.semantic.syn
Class Exchanging
java.lang.Object
io.odysz.anson.Anson
io.odysz.semantic.syn.Exchanging
- All Implemented Interfaces:
io.odysz.anson.IJsonable
public class Exchanging
extends io.odysz.anson.Anson
server client
ready ready
exchanging [initexchange()]
exchanging [onExchange()]
confirming [ack()]
confirming [onAck()]
ready [#closexchange()]
ready [onclose()]
- Author:
- Ody
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.odysz.anson.IJsonable
io.odysz.anson.IJsonable.JsonableFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intintFields inherited from class io.odysz.anson.Anson
verbose -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.odysz.anson.Anson
appendArr, appendObjStr, appendPair, escape, fromBlock, fromJson, fromJson, toBlock, toEnvelope, toJson, toJson, toMapBlock, unescapeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.odysz.anson.IJsonable
toBlock
-
Field Details
-
init
public static final int init- See Also:
-
exchanging
public static final int exchanging- See Also:
-
confirming
public static final int confirming- See Also:
-
ready
public static final int ready- See Also:
-
mode_server
public static final int mode_server- See Also:
-
mode_client
public static final int mode_client- See Also:
-
state
public int state
-
-
Constructor Details
-
Exchanging
public Exchanging(int server0_client1)
-
-
Method Details
-
initexchange
public int initexchange() -
onExchange
public int onExchange() -
ack
public int ack() -
onAck
public int onAck() -
close
public int close() -
onclose
public int onclose() -
name
-
name
-
toString
- Overrides:
toStringin classio.odysz.anson.Anson
-
can
Test theexpstate is the right next state.- Parameters:
exp-- Returns:
- current state
- Throws:
ExchangeException- expecting state ifexpis not the right one.
-
can
- Throws:
ExchangeException
-