Package io.odysz.semantic.syn
Class ExchangeBlock
java.lang.Object
io.odysz.anson.Anson
io.odysz.semantic.syn.ExchangeBlock
- All Implemented Interfaces:
io.odysz.anson.IJsonable
public class ExchangeBlock
extends io.odysz.anson.Anson
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.odysz.anson.IJsonable
io.odysz.anson.IJsonable.JsonableFactory -
Field Summary
FieldsFields inherited from class io.odysz.anson.Anson
verbose -
Constructor Summary
ConstructorsConstructorDescriptionExchangeBlock(String domain, String src, String peer, String sessionId, ExessionAct exstate) ExchangeBlock(String domain, String src, String peer, String sessionId, ExessionPersist exstate) -
Method Summary
Modifier and TypeMethodDescriptionintanswers()Copy answer frompchpage(AnResultset rs, HashMap<String, AnResultset> entities) chpagesize(int size) intintbooleanhasmore()Is the synode has more challenge blocks, which is need to behandled before closing exchange?booleanvoidprint(PrintStream out) voidremoveChgsub(AnResultset challenpage, String synode) seq(ExessionPersist xp) Set challengeId & answerIdsleep(double d) intsynact()One ofExessionAct's constants.synodes(AnResultset rs) totalChallenges(int count, int chsize) Methods inherited from class io.odysz.anson.Anson
appendArr, appendObjStr, appendPair, escape, fromBlock, fromJson, fromJson, toBlock, toEnvelope, toJson, toJson, toMapBlock, toString, 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
-
ExchangeFlagCol
- See Also:
-
domain
-
srcnode
-
peer
-
nv
-
chpage
-
entities
-
anspage
-
sleeps
public double sleeps
-
-
Constructor Details
-
ExchangeBlock
public ExchangeBlock() -
ExchangeBlock
-
ExchangeBlock
public ExchangeBlock(String domain, String src, String peer, String sessionId, ExessionPersist exstate)
-
-
Method Details
-
hasmore
public boolean hasmore()Is the synode has more challenge blocks, which is need to behandled before closing exchange? -
nv
-
enitities
public int enitities() -
answers
public int answers() -
enitities
-
answers
Copy answer fromp- Parameters:
p-- Returns:
- this
-
removeChgsub
- Throws:
SQLException
-
chpagesize
-
totalChallenges
-
synodes
-
synact
public int synact()One ofExessionAct's constants. -
seq
Set challengeId & answerIdthis.challengeId = xp.challengeId; this.answerId = xp.answerId;
- Parameters:
xp- Persist- Returns:
- this
-
requirestore
-
chpage
-
moreChallenge
public boolean moreChallenge() -
print
-
sleep
-