Enum Class BoundedMode
- All Implemented Interfaces:
Serializable,Comparable<BoundedMode>,java.lang.constant.Constable
End modes for the Kafka Consumer.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnd from committed offsets in ZK / Kafka brokers of a specific consumer group.End from the latest offset.End from user-supplied specific offsets for each partition.End from user-supplied timestamp for each partition.Do not end consuming. -
Method Summary
Modifier and TypeMethodDescriptionstatic BoundedModeReturns the enum constant of this class with the specified name.static BoundedMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNBOUNDED
Do not end consuming. -
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
End from the latest offset. This is evaluated at the start of consumption from a given partition. -
TIMESTAMP
End from user-supplied timestamp for each partition. -
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
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
-