Enum Class ContainerProperties.AssignmentCommitOption
java.lang.Object
java.lang.Enum<ContainerProperties.AssignmentCommitOption>
org.springframework.kafka.listener.ContainerProperties.AssignmentCommitOption
- All Implemented Interfaces:
Serializable
,Comparable<ContainerProperties.AssignmentCommitOption>
,Constable
- Enclosing class:
- ContainerProperties
public static enum ContainerProperties.AssignmentCommitOption
extends Enum<ContainerProperties.AssignmentCommitOption>
Offset commit behavior during assignment.
- Since:
- 2.3.6
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways commit the current offset during partition assignment.Commit the current offset during partition assignment when auto.offset.reset is 'latest'; transactional if so configured.Commit the current offset during partition assignment when auto.offset.reset is 'latest'; use consumer commit even when transactions are being used.Never commit the current offset during partition assignment. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always commit the current offset during partition assignment. -
NEVER
Never commit the current offset during partition assignment. -
LATEST_ONLY
Commit the current offset during partition assignment when auto.offset.reset is 'latest'; transactional if so configured. -
LATEST_ONLY_NO_TX
Commit the current offset during partition assignment when auto.offset.reset is 'latest'; use consumer commit even when transactions are being used.
-
-
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
-