Class MemoryBasedCopyingRemoteIterator<T>

  • Type Parameters:
    T - The type of the elements that are iterated.
    All Implemented Interfaces:
    RemoteIterator<List<T>>, de.aristaflow.adept2.model.communication.ServerSideProxy, de.aristaflow.adept2.model.communication.TimeTrackingSsProxy, Closeable, AutoCloseable

    public class MemoryBasedCopyingRemoteIterator<T>
    extends AbstractTimeTrackingRemoteIterator<T>
    A remote iterator based on a list of elements that are completely in memory. This is only useful for memory-based storages which are unable to provide a result partially.
    Since all elements are copied when creating this iterator, it is a snapshot and always consistent. It has an expiring alive time thus allowing to release the occupied memory even if no explicit close() occurs.

    close() closes AutoCloseable elements and resets the class fields.