- java.lang.Object
-
- org.apache.flink.api.common.functions.AbstractRichFunction
-
- org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction<Event>
-
- org.apache.flink.streaming.examples.statemachine.generator.EventsGeneratorSource
-
- All Implemented Interfaces:
- Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, org.apache.flink.streaming.api.functions.source.ParallelSourceFunction<Event>, org.apache.flink.streaming.api.functions.source.SourceFunction<Event>
public class EventsGeneratorSource
extends org.apache.flink.streaming.api.functions.source.RichParallelSourceFunction<Event>
A event stream source that generates the events on the fly. Useful for
self-contained demos.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.source.SourceFunction
org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T>
-
Constructor Summary
Constructors
| Constructor and Description |
EventsGeneratorSource(double errorProbability,
int delayPerRecordMillis) |
-
Method Summary
-
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
cancel
public void cancel()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.