Interface Sink.InitContext

    • Method Detail

      • getMailboxExecutor

        MailboxExecutor getMailboxExecutor()
        Deprecated.
        Returns the mailbox executor that allows to execute Runnables inside the task thread in between record processing.

        Note that this method should not be used per-record for performance reasons in the same way as records should not be sent to the external system individually. Rather, implementers are expected to batch records and only enqueue a single Runnable per batch to handle the result.

      • getSubtaskId

        int getSubtaskId()
        Deprecated.
        Returns:
        The id of task where the writer is.
      • getNumberOfParallelSubtasks

        int getNumberOfParallelSubtasks()
        Deprecated.
        Returns:
        The number of parallel Sink tasks.
      • metricGroup

        org.apache.flink.metrics.groups.SinkWriterMetricGroup metricGroup()
        Deprecated.
        Returns:
        The metric group this writer belongs to.
      • getRestoredCheckpointId

        OptionalLong getRestoredCheckpointId()
        Deprecated.
        Returns id of the restored checkpoint, if state was restored from the snapshot of a previous execution.