Remote version of the 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.
@Deprecated public interface RemoteIterator extends Remote
Modifier and Type | Method and Description |
---|---|
long |
getSize()
Deprecated.
Returns the size of the iteration, or
-1 if the
size is unknown. |
Object[] |
nextObjects()
Deprecated.
Returns an array of remote references to the next elements in this
iterator.
|
void |
skip(long items)
Deprecated.
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.
null
IllegalArgumentException
- if maxItems
is not positiveRemoteException
- on RMI errorsIterator.next()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.