Class ServerIterator

    • Constructor Detail

      • ServerIterator

        public ServerIterator​(RangeIterator iterator,
                              RemoteAdapterFactory factory,
                              int maxBufferSize)
                       throws RemoteException
        Deprecated.
        Creates a remote adapter for the given local item.
        Parameters:
        iterator - local iterator to be adapted
        factory - remote adapter factory
        maxBufferSize - maximum buffer size
        Throws:
        RemoteException - on RMI errors
    • Method Detail

      • getSize

        public long getSize()
                     throws RemoteException
        Deprecated.
        Returns the size of the iterator. The size is cached by invoking the adapted local iterator when this method is first called or by determining the size from an end-of-iterator condition in nextObjects().
        Specified by:
        getSize in interface RemoteIterator
        Returns:
        size of the iterator
        Throws:
        RemoteException - on RMI errors
        See Also:
        RangeIterator.getSize()
      • getRemoteObject

        protected abstract Object getRemoteObject​(Object object)
                                           throws RemoteException
        Deprecated.
        Returns a remote adapter for the given local object. This abstract method is used by nextObjects() to convert the local objects to remote references to be sent to the client.

        Subclasses should implement this method to use the remote adapter factory to create remote adapters of the specific element type.

        Parameters:
        object - local object
        Returns:
        remote adapter
        Throws:
        RemoteException - on RMI errors