|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.BufferedIterator
This is a simple producer/consumer buffer for objects returned by a source iterator. Objects will be buffered to the max buffer size the default is Integer.MAX_VALUE. Any exception thrown by the producer will be passed to the consumer.
Features:
Supplier
,
com.waveset.util.DoubleBufferedQueue
Field Summary | |
static java.lang.String |
code_id
Deprecated. |
Constructor Summary | |
BufferedIterator(java.util.Iterator src)
Deprecated. Default for max entries is Integer.MAX_VALUE. |
|
BufferedIterator(java.util.Iterator src,
int max)
Deprecated. Default for max entries is Integer.MAX_VALUE. |
|
BufferedIterator(java.util.Iterator src,
int max,
int tmout)
Deprecated. Constructor for source iterator and max buffered. |
Method Summary | |
boolean |
hasNext()
Deprecated. |
java.lang.Object |
next()
Deprecated. |
void |
remove()
Deprecated. Not supported. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public BufferedIterator(java.util.Iterator src)
src
- Source iterator to get entries from.public BufferedIterator(java.util.Iterator src, int max)
src
- Source iterator to get entries from.max
- Max number of entries for the buffer.public BufferedIterator(java.util.Iterator src, int max, int tmout)
src
- Source iterator.max
- Max number of entries for the buffer.Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |