public interface RemoteIterator extends Remote
RangeIterator interface.
 Used by the ServerIterator and
 ClientIterator classes to
 provide transparent RMI access to remote iterators.
 This interface allows both the client and server side to control the amount of buffering used to increase performance.
| Modifier and Type | Method and Description | 
|---|---|
| long | getSize()Returns the size of the iteration, or  -1if the
 size is unknown. | 
| Object[] | nextObjects()Returns an array of remote references to the next elements in this
 iterator. | 
| void | skip(long items)Skips the given number of elements in this iteration. | 
long getSize()
             throws RemoteException
-1 if the
 size is unknown.-1 if unknownRemoteException - on RMI errorsRangeIterator.getSize()void skip(long items)
          throws NoSuchElementException,
                 RemoteException
items - number of elements to skipNoSuchElementException - if skipped past the last elementRemoteException - on RMI errorsRangeIterator.skip(long)Object[] nextObjects() throws IllegalArgumentException, RemoteException
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.
nullIllegalArgumentException - if maxItems is not positiveRemoteException - on RMI errorsIterator.next()Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.