Class SharedDataIterator<T>

java.lang.Object
com.gigaspaces.datasource.concurrentaccess.SharedDataIterator<T>
All Implemented Interfaces:
DataIterator<T>, Iterator<T>

public class SharedDataIterator<T> extends Object implements DataIterator<T>
Shared iterator shares a single DataIterator among several instances, each instance gives the impression of a separate data iterator. the sharing is done with the help of a SharedDataIteratorSource that mediates between the instances and manage the entire cycle
Since:
7.0
Author:
eitany
  • Constructor Details

  • Method Details

    • close

      public void close()
      Description copied from interface: DataIterator
      Clean up after any resources associated with this iterator The iterator can be closed even if the iterator wasn't iterated over all of its elements.
      Specified by:
      close in interface DataIterator<T>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>