public class SharedDataIterator<T> extends Object implements DataIterator<T>
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 cycleConstructor and Description |
---|
SharedDataIterator(SharedDataIteratorSource<T> mediator) |
Modifier and Type | Method and Description |
---|---|
void |
close()
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.
|
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SharedDataIterator(SharedDataIteratorSource<T> mediator)
public void close()
DataIterator
close
in interface DataIterator<T>
Copyright © GigaSpaces.