Package org.apache.jackrabbit.rmi.remote
Interface RemoteIterator
-
- All Superinterfaces:
Remote
- All Known Implementing Classes:
ArrayIterator,BufferIterator,ServerAccessControlPolicyIterator,ServerIterator,ServerNodeIterator,ServerNodeTypeIterator,ServerPrincipalIterator,ServerPropertyIterator,ServerRowIterator,ServerVersionIterator
@Deprecated public interface RemoteIterator extends Remote
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote version of the JCR
RangeIteratorinterface. Used by theServerIteratorandClientIteratorclasses 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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description longgetSize()Deprecated.Returns the size of the iteration, or-1if the size is unknown.Object[]nextObjects()Deprecated.Returns an array of remote references to the next elements in this iterator.voidskip(long items)Deprecated.Skips the given number of elements in this iteration.
-
-
-
Method Detail
-
getSize
long getSize() throws RemoteExceptionDeprecated.Returns the size of the iteration, or-1if the size is unknown.- Returns:
- size of the iteration, or
-1if unknown - Throws:
RemoteException- on RMI errors- See Also:
RangeIterator.getSize()
-
skip
void skip(long items) throws NoSuchElementException, RemoteException
Deprecated.Skips the given number of elements in this iteration.- Parameters:
items- number of elements to skip- Throws:
NoSuchElementException- if skipped past the last elementRemoteException- on RMI errors- See Also:
RangeIterator.skip(long)
-
nextObjects
Object[] nextObjects() throws IllegalArgumentException, RemoteException
Deprecated.Returns an array of remote references to the next elements in this iterator. Returnsnullif 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.
- Returns:
- array of remote references, or
null - Throws:
IllegalArgumentException- ifmaxItemsis not positiveRemoteException- on RMI errors- See Also:
Iterator.next()
-
-