Class ElementsPerSecond
java.lang.Object
de.robertmetzger.flink.utils.performance.ElementsPerSecond
- All Implemented Interfaces:
Serializable
Utility for controlling the number of elements to process / emit per second.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCall this method for each processed element.
-
Constructor Details
-
ElementsPerSecond
public ElementsPerSecond(long eps)Create a rate limiter.- Parameters:
eps- elements per second
-
-
Method Details
-
reportElement
Call this method for each processed element.- Throws:
InterruptedException- Happens
-