org.sblim.slp.internal.ua

Class ResultTable

public class ResultTable extends Object implements Iterator<Object>

ResultTable
Method Summary
voidaddException(Exception pE)
addException
voidaddExceptions(ReplyMessage pReplyMsg)
addExceptions
voidaddExceptions(Iterator<?> pExceptionItr)
addExceptions
voidaddResults(ReplyMessage pReplyMsg)
addResults
voidaddResults(Iterator<?> pResItr)
addResults
intgetTotalResponses()
getTotalResponses
booleanhasMoreExceptions()
booleanhasNext()
Objectnext()
ObjectnextException()
voidregisterRequester(DatagramRequester pReq)
ResultTable has to know which Requesters provide results.
voidremove()
voidunregisterRequester(DatagramRequester pReq)
If the Requester's sequence is completed, Requester has to be unregistered otherwise hasNext() will block.

Method Detail

addException

public void addException(Exception pE)
addException

Parameters: pE

addExceptions

public void addExceptions(ReplyMessage pReplyMsg)
addExceptions

Parameters: pReplyMsg

addExceptions

public void addExceptions(Iterator<?> pExceptionItr)
addExceptions

Parameters: pExceptionItr

addResults

public void addResults(ReplyMessage pReplyMsg)
addResults

Parameters: pReplyMsg

addResults

public void addResults(Iterator<?> pResItr)
addResults

Parameters: pResItr

getTotalResponses

public int getTotalResponses()
getTotalResponses

Returns: int

hasMoreExceptions

public boolean hasMoreExceptions()

Returns: next element in Exception table

hasNext

public boolean hasNext()

Returns: true if there are results or exceptions to read

See Also: java.util.Iterator#hasNext()

next

public Object next()

Returns: a result or an Exception

See Also: java.util.Iterator#next()

nextException

public Object nextException()

Returns: next element in Exception table

Throws: NoSuchElementException

registerRequester

public void registerRequester(DatagramRequester pReq)
ResultTable has to know which Requesters provide results. Requester have to be registered before hasNext() is called.

Parameters: pReq

See Also: unregisterRequester

remove

public void remove()

unregisterRequester

public void unregisterRequester(DatagramRequester pReq)
If the Requester's sequence is completed, Requester has to be unregistered otherwise hasNext() will block.

Parameters: pReq

Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.