OUT
- Type of the output elementsSRC
- Type of the source function which has to be stoppablepublic class StoppableStreamSource<OUT,SRC extends SourceFunction<OUT> & StoppableFunction> extends StreamSource<OUT,SRC>
AbstractStreamOperator.CountingOutput, AbstractStreamOperator.LatencyGauge
userFunction
chainingStrategy, config, latencyGauge, LOG, metrics, output, timeServiceManager
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, run, run
close, dispose, getUserFunction, getUserFunctionParameters, initializeState, notifyOfCompletedCheckpoint, open, setOutputType, setup, snapshotState
getChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getUserCodeClassloader, initializeState, numEventTimeTimers, numProcessingTimeTimers, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark, processWatermark1, processWatermark2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, snapshotState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, dispose, getChainingStrategy, getMetricGroup, getOperatorID, initializeState, notifyOfCompletedCheckpoint, open, setChainingStrategy, setKeyContextElement1, setKeyContextElement2, setup, snapshotState
public StoppableStreamSource(SRC sourceFunction)
SourceFunction
that implements StoppableFunction
.sourceFunction
- A SourceFunction
that implements StoppableFunction
.public void stop()
StoppableFunction.stop()
on the user function.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.