Package org.eclipse.emf.cdo.common.util
Class CDOQueryQueue.BlockingCloseableIteratorImpl
- java.lang.Object
-
- org.eclipse.emf.cdo.common.util.CDOQueryQueue.BlockingCloseableIteratorImpl
-
- All Implemented Interfaces:
java.util.Iterator<E>,BlockingCloseableIterator<E>,org.eclipse.net4j.util.collection.Closeable,org.eclipse.net4j.util.collection.CloseableIterator<E>
- Enclosing class:
- CDOQueryQueue<E>
public class CDOQueryQueue.BlockingCloseableIteratorImpl extends java.lang.Object implements BlockingCloseableIterator<E>
A blocking iterator that takes elements from aCDOQueryQueue.- Since:
- 2.0
- Author:
- Simon McDuff
-
-
Constructor Summary
Constructors Constructor Description BlockingCloseableIteratorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()booleanisClosed()Enext()Epeek()Non-blocking call.voidremove()
-
-
-
Method Detail
-
peek
public E peek()
Description copied from interface:BlockingCloseableIteratorNon-blocking call.- Specified by:
peekin interfaceBlockingCloseableIterator<E>
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<E>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<E>
-
close
public void close()
- Specified by:
closein interfaceorg.eclipse.net4j.util.collection.Closeable
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceorg.eclipse.net4j.util.collection.Closeable
-
-