Class ResultTable

java.lang.Object
org.sblim.slp.internal.ua.ResultTable
All Implemented Interfaces:
Iterator

public class ResultTable extends Object implements Iterator
ResultTable
  • Constructor Details

    • ResultTable

      public ResultTable()
  • Method Details

    • 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

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

      public void addResults(ReplyMessage pReplyMsg)
      addResults
      Parameters:
      pReplyMsg -
    • addResults

      public void addResults(Iterator pResItr)
      addResults
      Parameters:
      pResItr -
    • addExceptions

      public void addExceptions(ReplyMessage pReplyMsg)
      addExceptions
      Parameters:
      pReplyMsg -
    • addExceptions

      public void addExceptions(Iterator pExceptionItr)
      addExceptions
      Parameters:
      pExceptionItr -
    • addException

      public void addException(Exception pE)
      addException
      Parameters:
      pE -
    • getTotalResponses

      public int getTotalResponses()
      getTotalResponses
      Returns:
      int
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator
      Returns:
      true if there are results or exceptions to read
      See Also:
    • next

      public Object next() throws NoSuchElementException
      Specified by:
      next in interface Iterator
      Returns:
      a result or an Exception
      Throws:
      NoSuchElementException
      See Also:
    • nextException

      public Object nextException() throws NoSuchElementException
      Returns:
      next element in Exception table
      Throws:
      NoSuchElementException
    • hasMoreExceptions

      public boolean hasMoreExceptions()
      Returns:
      next element in Exception table
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator