|
||||||||||
| 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. |
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. |
| Method Detail |
|---|
long getSize()
throws java.rmi.RemoteException
-1 if the size is unknown.
-1 if unknown
java.rmi.RemoteException - on RMI errorsRangeIterator.getSize()
void skip(long items)
throws java.util.NoSuchElementException,
java.rmi.RemoteException
items - number of elements to skip
java.util.NoSuchElementException - if skipped past the last element
java.rmi.RemoteException - on RMI errorsRangeIterator.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.
null
java.lang.IllegalArgumentException - if maxItems is not positive
java.rmi.RemoteException - on RMI errorsIterator.next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||