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>userFunctionchainingStrategy, LOG, 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, isCanceledOrStopped, markCanceledOrStopped, runclose, dispose, getUserFunction, getUserFunctionParameters, notifyOfCompletedCheckpoint, open, restoreState, setOutputType, setup, snapshotOperatorStatedisableInputCopy, getChainingStrategy, getContainingTask, getExecutionConfig, getOperatorConfig, getPartitionedState, getPartitionedState, getRuntimeContext, getStateBackend, getUserCodeClassloader, isInputCopyingDisabled, registerTimer, setChainingStrategy, setKeyContext, setKeyContextElement1, setKeyContextElement2clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, dispose, getChainingStrategy, isInputCopyingDisabled, 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.