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 TypeMethodDescriptionvoidaddExceptionvoidaddExceptions(Iterator<?> pExceptionItr) addExceptionsvoidaddExceptions(ReplyMessage pReplyMsg) addExceptionsvoidaddResults(Iterator<?> pResItr) addResultsvoidaddResults(ReplyMessage pReplyMsg) addResultsintgetTotalResponsesbooleanbooleanhasNext()next()voidResultTable has to know which Requesters provide results.voidremove()voidIf 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, waitMethods 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:
nextin 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()
-