Class ResultTable
java.lang.Object
org.sblim.slp.internal.ua.ResultTable
- All Implemented Interfaces:
Iterator
-
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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
next
in 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
-