OffsetGapPolicy
What a read of a Kafka partition does when the offset it is to read from is before the partition's earliest retained offset: the topic's retention deleted what the checkpoint had yet to read. Messages were lost, and the read never steps over them silently: whatever the policy, it logs an error, counts the gap (KafkaPartitionedSource.offsetGaps) and tells the node's observer of it (ObservedEvent.OffsetGap).
It decides nothing else. A partition that ends before the offset, which retention never makes (it moves a partition's start, not its end), ends the read whatever the policy, counted and logged the same way (OffsetGapException): the topic was created again, or the partition truncated by an unclean leader election. A topic created again is read from its start once its subscriptions join it, its next read refused by the incarnation guard until then; a truncated partition keeps its topic id, so its read is placed again only once it holds the offset again, and what is written below the offset meanwhile is not read. A record at a lower leader epoch than the one before it is a topic created again, and ends the read the same way (RecreatedTopicException) (#7495).
Cases may be added in a minor release, so a when over it keeps an else branch.
Entries
The read fails with an OffsetGapException (the default). A subscription retries its read with its backoff, logging each failure, so it stays where it is, parked in effect. Once the loss is understood, the recovery is to set wow.kafka.offset-gap=earliest and restart the node: the read resumes from the earliest retained offset, and the skipped range is lost to that subscription and stays counted.
Companion properties
Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.
Companion functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.