Interface RemoteIterator

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      long getSize()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the size of the iteration, or -1 if the size is unknown.
      Object[] nextObjects()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns an array of remote references to the next elements in this iterator.
      void skip​(long items)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Skips the given number of elements in this iteration.
    • Method Detail

      • getSize

        long getSize()
              throws RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the size of the iteration, or -1 if the size is unknown.
        Returns:
        size of the iteration, or -1 if unknown
        Throws:
        RemoteException - on RMI errors
        See Also:
        RangeIterator.getSize()
      • nextObjects

        Object[] nextObjects()
                      throws IllegalArgumentException,
                             RemoteException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns an array of remote references to the next elements in this iterator. Returns null if the end of this iteration has been reached.

        To reduce the amount of remote method calls, this method returns an array of one or more elements in this iteration.

        Returns:
        array of remote references, or null
        Throws:
        IllegalArgumentException - if maxItems is not positive
        RemoteException - on RMI errors
        See Also:
        Iterator.next()