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
Fields inherited from class io.odysz.anson.Anson
verbose
-
Constructor Summary
ConstructorDescriptionExchangeBlock
(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 TypeMethodDescriptionint
answers()
Copy answer fromp
chpage
(AnResultset rs, HashMap<String, AnResultset> entities) chpagesize
(int size) int
int
boolean
hasmore()
Is the synode has more challenge blocks, which is need to behandled before closing exchange?boolean
void
print
(PrintStream out) void
removeChgsub
(AnResultset challenpage, String synode) seq
(ExessionPersist xp) Set challengeId & answerIdsleep
(double d) int
synact()
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, 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
-
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
-