org.eclipse.emf.cdo.common.util
Interface BlockingCloseableIterator<T>

All Superinterfaces:
Closeable, CloseableIterator<T>, Iterator<T>
All Known Implementing Classes:
CDOQueryQueue.BlockingCloseableIteratorImpl

public interface BlockingCloseableIterator<T>
extends CloseableIterator<T>

A closeable iterator that blocks on Iterator.hasNext() until the next element is available or the end of the iteration is reached.

Since:
2.0

Method Summary
 T peek()
          Non-blocking call.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 
Methods inherited from interface org.eclipse.net4j.util.collection.Closeable
close, isClosed
 

Method Detail

peek

T peek()
Non-blocking call.



Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.