OUT - Type of the output elementsSRC - Type of the source function which has to be stoppablepublic class StoppableStreamSource<OUT,SRC extends SourceFunction<OUT> & org.apache.flink.api.common.functions.StoppableFunction> extends StreamSource<OUT,SRC>
StreamSource.AutomaticWatermarkContext<T>, StreamSource.ManualWatermarkContext<T>, StreamSource.NonTimestampContext<T>AbstractStreamOperator.CountingOutputuserFunctionchainingStrategy, LOG, metrics, output| Constructor and Description |
|---|
StoppableStreamSource(SRC sourceFunction)
Takes a
SourceFunction that implements StoppableFunction. |
| Modifier and Type | Method and Description |
|---|---|
void |
stop()
Marks the source a stopped and calls
StoppableFunction.stop() on the user function. |
cancel, checkAsyncException, isCanceledOrStopped, markCanceledOrStopped, run, runclose, dispose, getUserFunction, getUserFunctionParameters, notifyOfCompletedCheckpoint, open, restoreState, setOutputType, setup, snapshotOperatorStategetChainingStrategy, getContainingTask, getCurrentProcessingTime, getExecutionConfig, getMetricGroup, getOperatorConfig, getPartitionedState, getPartitionedState, getRuntimeContext, getStateBackend, getUserCodeClassloader, registerTimer, setChainingStrategy, setKeyContext, setKeyContextElement1, setKeyContextElement2clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, dispose, getChainingStrategy, getMetricGroup, notifyOfCompletedCheckpoint, open, restoreState, setChainingStrategy, setKeyContextElement1, setKeyContextElement2, setup, snapshotOperatorStatepublic StoppableStreamSource(SRC sourceFunction)
SourceFunction that implements StoppableFunction.sourceFunction - A SourceFunction that implements StoppableFunction.Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.