Class SharedDataIterator<T>
java.lang.Object
com.gigaspaces.datasource.concurrentaccess.SharedDataIterator<T>
- All Implemented Interfaces:
DataIterator<T>,Iterator<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:DataIteratorClean 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:
closein interfaceDataIterator<T>
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-