public class GridSpiCloseableIteratorWrapper<T> extends GridCloseableIteratorAdapter<T>
GridSpiCloseableIterator to GridCloseableIterator.| Constructor and Description |
|---|
GridSpiCloseableIteratorWrapper(GridSpiCloseableIterator<T> iter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onClose()
Invoked on iterator close.
|
protected boolean |
onHasNext() |
protected T |
onNext() |
checkClosed, close, hasNextX, isClosed, nextX, onRemove, removeXhasNext, iterator, next, removepublic GridSpiCloseableIteratorWrapper(GridSpiCloseableIterator<T> iter)
iter - Spi iterator.protected T onNext() throws GridException
onNext in class GridCloseableIteratorAdapter<T>GridException - If failed.protected boolean onHasNext()
throws GridException
onHasNext in class GridCloseableIteratorAdapter<T>True if iterator has next element.GridException - If failed.protected void onClose()
throws GridException
onClose in class GridCloseableIteratorAdapter<T>GridException - If closing failed.Copyright © 2014. All rights reserved.