Enum Class ContainerProperties.ShareAckMode
java.lang.Object
java.lang.Enum<ContainerProperties.ShareAckMode>
org.springframework.kafka.listener.ContainerProperties.ShareAckMode
- All Implemented Interfaces:
Serializable, Comparable<ContainerProperties.ShareAckMode>, Constable
- Enclosing class:
ContainerProperties
The acknowledgment mode for share consumer containers.
- Since:
- 4.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ContainerProperties.ShareAckMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMPLICIT
Kafka client implicit mode. All records are automatically acknowledged as ACCEPT by the broker regardless of processing outcome. No per-record acknowledgment control is available in this mode. Equivalent to settingshare.acknowledgement.mode=impliciton the Kafka client. -
EXPLICIT
Kafka client explicit mode, container-managed. The container sends ACCEPT after successful processing and delegates to theShareConsumerRecordRecoverer(default: REJECT) on error. This is the default. -
MANUAL
Kafka client explicit mode, listener-managed. The listener must acknowledge each record manually via the providedShareAcknowledgment. Subsequent polls are blocked until all records from the previous poll are acknowledged.
-
-
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
-