Class ThrottledIterator<T>
- java.lang.Object
-
- org.apache.flink.streaming.examples.utils.ThrottledIterator<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable,Iterator<T>
public class ThrottledIterator<T> extends Object implements Iterator<T>, Serializable
A variant of the collection source (emits a sequence of elements as a stream) that supports throttling the emission rate.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ThrottledIterator(Iterator<T> source, long elementsPerSecond)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-