Enum Class NearlineLatencyTimestampSource

java.lang.Object
java.lang.Enum<NearlineLatencyTimestampSource>
com.linkedin.davinci.config.NearlineLatencyTimestampSource
All Implemented Interfaces:
Serializable, Comparable<NearlineLatencyTimestampSource>, Constable

public enum NearlineLatencyTimestampSource extends Enum<NearlineLatencyTimestampSource>
Selects which timestamp the leader carries in LeaderMetadata.upstreamMessageTimestamp when producing a record to the version topic from a consumed upstream message.

Followers use this timestamp to compute true per-record end-to-end nearline ingestion latency. Both options are millisecond-since-epoch values, but they answer different operational questions:

  • BROKER — the upstream pub-sub system's append timestamp, falling back to the upstream producer's wall clock when the broker timestamp is unavailable. Matches the SLI definition the leader uses today via PubSubMessage.getPubSubMessageTime() and is the infra-only latency view.
  • PRODUCER — the upstream producer's wall clock as embedded in KafkaMessageEnvelope.producerMetadata.messageTimestamp. Includes upstream-client enqueue-to-produce latency, giving the application-perceived end-to-end view.

Default is BROKER.

  • Enum Constant Details

  • Method Details

    • values

      public static NearlineLatencyTimestampSource[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NearlineLatencyTimestampSource valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public static NearlineLatencyTimestampSource parse(String value)