Enum Class KafkaSeekOperation.OffsetType
java.lang.Object
java.lang.Enum<KafkaSeekOperation.OffsetType>
io.micronaut.configuration.kafka.seek.KafkaSeekOperation.OffsetType
- All Implemented Interfaces:
Serializable
,Comparable<KafkaSeekOperation.OffsetType>
,Constable
- Enclosing interface:
- KafkaSeekOperation
Determines the interpretation of the
KafkaSeekOperation.offset()
value.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe offset is absolute.The offset goes backward, relative to the current position.The offset goes forward, relative to the beginning of the partition.The offset goes backward, relative to the end of the partition.The offset goes forward, relative to the current position.The offset represents a Kafka timestamp. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static KafkaSeekOperation.OffsetType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABSOLUTE
The offset is absolute. -
FORWARD
The offset goes forward, relative to the current position. -
BACKWARD
The offset goes backward, relative to the current position. -
BEGINNING
The offset goes forward, relative to the beginning of the partition. -
END
The offset goes backward, relative to the end of the partition. -
TIMESTAMP
The offset represents a Kafka timestamp.
-
-
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
-