public class ImpulseSourceFunction
extends java.lang.Object
implements org.apache.flink.streaming.api.functions.source.SourceFunction<org.apache.beam.sdk.util.WindowedValue<byte[]>>, org.apache.flink.streaming.api.checkpoint.CheckpointedFunction
| Constructor and Description |
|---|
ImpulseSourceFunction(long idleTimeoutMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
initializeState(org.apache.flink.runtime.state.FunctionInitializationContext context) |
void |
run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.beam.sdk.util.WindowedValue<byte[]>> sourceContext) |
void |
snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context) |
public void run(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<org.apache.beam.sdk.util.WindowedValue<byte[]>> sourceContext)
throws java.lang.Exception
run in interface org.apache.flink.streaming.api.functions.source.SourceFunction<org.apache.beam.sdk.util.WindowedValue<byte[]>>java.lang.Exceptionpublic void cancel()
cancel in interface org.apache.flink.streaming.api.functions.source.SourceFunction<org.apache.beam.sdk.util.WindowedValue<byte[]>>public void snapshotState(org.apache.flink.runtime.state.FunctionSnapshotContext context)
snapshotState in interface org.apache.flink.streaming.api.checkpoint.CheckpointedFunctionpublic void initializeState(org.apache.flink.runtime.state.FunctionInitializationContext context)
throws java.lang.Exception
initializeState in interface org.apache.flink.streaming.api.checkpoint.CheckpointedFunctionjava.lang.Exception