Package com.linkedin.davinci.config
Enum Class NearlineLatencyTimestampSource
java.lang.Object
java.lang.Enum<NearlineLatencyTimestampSource>
com.linkedin.davinci.config.NearlineLatencyTimestampSource
- All Implemented Interfaces:
Serializable,Comparable<NearlineLatencyTimestampSource>,Constable
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 viaPubSubMessage.getPubSubMessageTime()and is the infra-only latency view.PRODUCER— the upstream producer's wall clock as embedded inKafkaMessageEnvelope.producerMetadata.messageTimestamp. Includes upstream-client enqueue-to-produce latency, giving the application-perceived end-to-end view.
Default is BROKER.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static NearlineLatencyTimestampSource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BROKER
-
PRODUCER
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
parse
-