Enum Class OffsetReset

java.lang.Object
java.lang.Enum<OffsetReset>
io.micronaut.configuration.kafka.annotation.OffsetReset
All Implemented Interfaces:
Serializable, Comparable<OffsetReset>, Constable

public enum OffsetReset extends Enum<OffsetReset>
Sets the value of the auto.offset.reset property for a Kafka consumer.
Since:
1.0
Author:
Graeme Rocher
  • Enum Constant Details

    • EARLIEST

      public static final OffsetReset EARLIEST
      Earliest means that a consumer will start reading the earliest available records for a topic.
    • LATEST

      public static final OffsetReset LATEST
      Latest means that a consumer will start reading the latest consumer records.
  • Method Details

    • values

      public static OffsetReset[] 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 OffsetReset 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