Class SourceStreamTask<OUT,​SRC extends SourceFunction<OUT>,​OP extends StreamSource<OUT,​SRC>>

  • Type Parameters:
    OUT - Type of the output elements of this source.
    SRC - Type of the source function for the stream source operator
    OP - Type of the stream source operator
    All Implemented Interfaces:
    CheckpointableTask, CoordinatedTask, TaskInvokable, AsyncExceptionHandler, ContainingTaskDetails

    @Deprecated
    @Internal
    public class SourceStreamTask<OUT,​SRC extends SourceFunction<OUT>,​OP extends StreamSource<OUT,​SRC>>
    extends StreamTask<OUT,​OP>
    Deprecated.
    This class is based on the SourceFunction API, which is due to be removed. Use the new Source API instead.
    StreamTask for executing a StreamSource.

    One important aspect of this is that the checkpointing and the emission of elements must never occur at the same time. The execution must be serial. This is achieved by having the contract with the SourceFunction that it must only modify its state or emit elements in a synchronized block that locks on the lock Object. Also, the modification of the state and the emission of elements must happen in the same block of code that is protected by the synchronized block.