Class LatencyMarker


  • @PublicEvolving
    public final class LatencyMarker
    extends StreamElement
    Special record type carrying a timestamp of its creation time at a source operator and the vertexId and subtask index of the operator.

    At sinks, the marker can be used to approximate the time a record needs to travel through the dataflow.

    • Constructor Detail

      • LatencyMarker

        public LatencyMarker​(long markedTime,
                             OperatorID operatorId,
                             int subtaskIndex)
        Creates a latency mark with the given timestamp.
    • Method Detail

      • getMarkedTime

        public long getMarkedTime()
        Returns the timestamp marked by the LatencyMarker.
      • getOperatorId

        public OperatorID getOperatorId()
      • getSubtaskIndex

        public int getSubtaskIndex()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object