public interface RemoteIterator
extends java.rmi.Remote
javax.jcr.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
-1 if the
size is unknown. |
java.lang.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 java.rmi.RemoteException
-1 if the
size is unknown.-1 if unknownjava.rmi.RemoteException - on RMI errorsjavax.jcr.RangeIterator#getSize()void skip(long items)
throws java.util.NoSuchElementException,
java.rmi.RemoteException
items - number of elements to skipjava.util.NoSuchElementException - if skipped past the last elementjava.rmi.RemoteException - on RMI errorsjavax.jcr.RangeIterator#skip(long)java.lang.Object[] nextObjects()
throws java.lang.IllegalArgumentException,
java.rmi.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.
nulljava.lang.IllegalArgumentException - if maxItems is not positivejava.rmi.RemoteException - on RMI errorsIterator.next()"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"