java.lang.Object
org.apache.flink.streaming.runtime.streamrecord.StreamElement
org.apache.flink.streaming.runtime.streamrecord.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 Details

    • LatencyMarker

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

    • getMarkedTime

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

      public OperatorID getOperatorId()
    • getSubtaskIndex

      public int getSubtaskIndex()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object