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 int
static final int
static final int
static final int
static final int
static final int
int
Fields 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, unescape
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
toString
in classio.odysz.anson.Anson
-
can
Test theexp
state is the right next state.- Parameters:
exp
-- Returns:
- current state
- Throws:
ExchangeException
- expecting state ifexp
is not the right one.
-
can
- Throws:
ExchangeException
-