From 1c030ef85e5e553e53e5272065be3787d01d4058 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 27 Nov 2024 22:08:28 +0100 Subject: [PATCH] GH-2128: Update nack() Javadoc (#3642) - Correct the Javadoc to specify `pollTimeout` instead of `maxPollInterval` for the `nack()` methods. Fixes: #2128 Issue: https://github.com/spring-projects/spring-kafka/issues/2128 --- .../org/springframework/kafka/support/Acknowledgment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-kafka/src/main/java/org/springframework/kafka/support/Acknowledgment.java b/spring-kafka/src/main/java/org/springframework/kafka/support/Acknowledgment.java index 47217d53f1..e92151c476 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/support/Acknowledgment.java +++ b/spring-kafka/src/main/java/org/springframework/kafka/support/Acknowledgment.java @@ -46,7 +46,7 @@ public interface Acknowledgment { * Must be called on the consumer thread. *

* @param sleep the duration to sleep; the actual sleep time will be larger of this value - * and the container's {@code maxPollInterval}, which defaults to 5 seconds. + * and the container's {@code pollTimeout}, which defaults to 5 seconds. * @since 2.8.7 */ default void nack(Duration sleep) { @@ -74,7 +74,7 @@ default void acknowledge(int index) { *

* @param index the index of the failed record in the batch. * @param sleep the duration to sleep; the actual sleep time will be larger of this value - * and the container's {@code maxPollInterval}, which defaults to 5 seconds. + * and the container's {@code pollTimeout}, which defaults to 5 seconds. * @since 2.8.7 */ default void nack(int index, Duration sleep) {