|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteIterator
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.
Method Summary | |
---|---|
long |
getSize()
Returns the size of the iteration, or -1 if 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. |
Method Detail |
---|
long getSize() throws RemoteException
-1
if the
size is unknown.
-1
if unknown
RemoteException
- on RMI errorsRangeIterator.getSize()
void skip(long items) throws NoSuchElementException, RemoteException
items
- number of elements to skip
NoSuchElementException
- if skipped past the last element
RemoteException
- 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 positive
RemoteException
- on RMI errorsIterator.next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |