afedulov commented on code in PR #21774:
URL: https://github.com/apache/flink/pull/21774#discussion_r1241798941
##########
flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/async/AsyncIOExample.java:
##########
@@ -76,8 +79,19 @@ public static void main(String[] args) throws Exception {
// obtain execution environment
StreamExecutionEnvironment env =
StreamExecutionEnvironment.getExecutionEnvironment();
+ DataGeneratorSource<Integer> generatorSource =
+ new DataGeneratorSource<>(
+ Long::intValue,
+ Integer.MAX_VALUE,
+ RateLimiterStrategy.perSecond(100),
+ Types.INT);
+
// create input stream of a single integer
- DataStream<Integer> inputStream = env.addSource(new SimpleSource());
+ DataStream<Integer> inputStream =
+ env.fromSource(
+ generatorSource,
+ WatermarkStrategy.noWatermarks(),
+ "Generated tuples Source");
Review Comment:
Thanks, a copy-paste error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]