org.openjena.atlas.iterator
Class IteratorBlockingQueue<T>

java.lang.Object
  extended by org.openjena.atlas.iterator.IteratorBlockingQueue<T>
All Implemented Interfaces:
java.util.Iterator<T>

public class IteratorBlockingQueue<T>
extends java.lang.Object
implements java.util.Iterator<T>

Iterator over a blocking queue until queue end seen


Constructor Summary
IteratorBlockingQueue(java.util.concurrent.BlockingQueue<T> queue, T endMarker)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorBlockingQueue

public IteratorBlockingQueue(java.util.concurrent.BlockingQueue<T> queue,
                             T endMarker)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T>


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.