Enum Class BoundedMode

java.lang.Object
java.lang.Enum<BoundedMode>
org.apache.flink.streaming.connectors.kafka.config.BoundedMode
All Implemented Interfaces:
Serializable, Comparable<BoundedMode>, java.lang.constant.Constable

@Internal public enum BoundedMode extends Enum<BoundedMode>
End modes for the Kafka Consumer.
  • Enum Constant Details

    • UNBOUNDED

      public static final BoundedMode UNBOUNDED
      Do not end consuming.
    • GROUP_OFFSETS

      public static final BoundedMode GROUP_OFFSETS
      End from committed offsets in ZK / Kafka brokers of a specific consumer group. This is evaluated at the start of consumption from a given partition.
    • LATEST

      public static final BoundedMode LATEST
      End from the latest offset. This is evaluated at the start of consumption from a given partition.
    • TIMESTAMP

      public static final BoundedMode TIMESTAMP
      End from user-supplied timestamp for each partition.
    • SPECIFIC_OFFSETS

      public static final BoundedMode SPECIFIC_OFFSETS
      End from user-supplied specific offsets for each partition. If an offset for a partition is not provided it will not consume from that partition.
  • Method Details

    • values

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