Class ResultTable
java.lang.Object
org.sblim.slp.internal.ua.ResultTable
- All Implemented Interfaces:
Iterator
-
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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
addExceptions
-
addExceptions
-
addException
-
getTotalResponses
public int getTotalResponses()getTotalResponses- Returns:
- int
-
hasNext
-
next
- Specified by:
nextin interfaceIterator- 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
-