Interface RemoteIterable<T>

    • Method Detail

      • remoteIterator

        RemoteIterator<T> remoteIterator()
                                  throws java.rmi.RemoteException
        Provides a remote iterator that has the same interface as Iterator but every method can throw a RemoteException as required by Java RMI. This method is most likely not relevant for API users but needed for asIterable().
        Returns:
        a remote iterator
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        asIterable()
      • asIterable

        java.lang.Iterable<T> asIterable()
                                  throws java.rmi.RemoteException
        Provides an Iterable view of this RemoteIterable. This normally uses remoteIterator() and wraps the return value into a real Iterator that throws RuntimeExceptions instead of RemoteExceptions so that this view can be used in for-each loops.
        Returns:
        an iterable view of this RemoteIterable
        Throws:
        java.rmi.RemoteException - remote communication problem
        See Also:
        ApiIterator