Package org.sblim.slp.internal.ua
Class ResultTable
java.lang.Object
org.sblim.slp.internal.ua.ResultTable
ResultTable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExceptionvoid
addExceptions
(Iterator<?> pExceptionItr) addExceptionsvoid
addExceptions
(ReplyMessage pReplyMsg) addExceptionsvoid
addResults
(Iterator<?> pResItr) addResultsvoid
addResults
(ReplyMessage pReplyMsg) addResultsint
getTotalResponsesboolean
boolean
hasNext()
next()
void
ResultTable has to know which Requesters provide results.void
remove()
void
If the Requester's sequence is completed, Requester has to be unregistered otherwise hasNext() will block.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ResultTable
public ResultTable()
-
-
Method Details
-
registerRequester
ResultTable has to know which Requesters provide results. Requester have to be registered before hasNext() is called.- Parameters:
pReq
-- See Also:
-
unregisterRequester
If the Requester's sequence is completed, Requester has to be unregistered otherwise hasNext() will block.- Parameters:
pReq
-
-
addResults
addResults- Parameters:
pReplyMsg
-
-
addResults
addResults- Parameters:
pResItr
-
-
addExceptions
addExceptions- Parameters:
pReplyMsg
-
-
addExceptions
addExceptions- Parameters:
pExceptionItr
-
-
addException
addException- Parameters:
pE
-
-
getTotalResponses
public int getTotalResponses()getTotalResponses- Returns:
- int
-
hasNext
public boolean hasNext() -
next
- Specified by:
next
in interfaceIterator<Object>
- Returns:
- a result or an Exception
- Throws:
NoSuchElementException
- See Also:
-
nextException
- Returns:
- next element in Exception table
- Throws:
NoSuchElementException
-
hasMoreExceptions
public boolean hasMoreExceptions()- Returns:
- next element in Exception table
-
remove
public void remove()
-