public class ResultTable
extends java.lang.Object
implements java.util.Iterator<java.lang.Object>
Constructor and Description |
---|
ResultTable() |
Modifier and Type | Method and Description |
---|---|
void |
addException(java.lang.Exception pE)
addException
|
void |
addExceptions(java.util.Iterator<?> pExceptionItr)
addExceptions
|
void |
addExceptions(ReplyMessage pReplyMsg)
addExceptions
|
void |
addResults(java.util.Iterator<?> pResItr)
addResults
|
void |
addResults(ReplyMessage pReplyMsg)
addResults
|
int |
getTotalResponses()
getTotalResponses
|
boolean |
hasMoreExceptions() |
boolean |
hasNext() |
java.lang.Object |
next() |
java.lang.Object |
nextException() |
void |
registerRequester(DatagramRequester pReq)
ResultTable has to know which Requesters provide results.
|
void |
remove() |
void |
unregisterRequester(DatagramRequester pReq)
If the Requester's sequence is completed, Requester has to be
unregistered otherwise hasNext() will block.
|
public void registerRequester(DatagramRequester pReq)
pReq
- unregisterRequester(DatagramRequester)
public void unregisterRequester(DatagramRequester pReq)
pReq
- public void addResults(ReplyMessage pReplyMsg)
pReplyMsg
- public void addResults(java.util.Iterator<?> pResItr)
pResItr
- public void addExceptions(ReplyMessage pReplyMsg)
pReplyMsg
- public void addExceptions(java.util.Iterator<?> pExceptionItr)
pExceptionItr
- public void addException(java.lang.Exception pE)
pE
- public int getTotalResponses()
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.Object>
Iterator.hasNext()
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator<java.lang.Object>
java.util.NoSuchElementException
Iterator.next()
public java.lang.Object nextException() throws java.util.NoSuchElementException
java.util.NoSuchElementException
public boolean hasMoreExceptions()
public void remove()
remove
in interface java.util.Iterator<java.lang.Object>
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.