Skip to content

Commit b2bc2e1

Browse files
committed
spring-projectsGH-2128: Update nack() Javadoc
- Correct the Javadoc to specify `pollTimeout` instead of `maxPollInterval` for the `nack()` methods.
1 parent e9444a5 commit b2bc2e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-kafka/src/main/java/org/springframework/kafka/support/Acknowledgment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public interface Acknowledgment {
4646
* Must be called on the consumer thread.
4747
* <p>
4848
* @param sleep the duration to sleep; the actual sleep time will be larger of this value
49-
* and the container's {@code maxPollInterval}, which defaults to 5 seconds.
49+
* and the container's {@code pollTimeout}, which defaults to 5 seconds.
5050
* @since 2.8.7
5151
*/
5252
default void nack(Duration sleep) {
@@ -74,7 +74,7 @@ default void acknowledge(int index) {
7474
* <p>
7575
* @param index the index of the failed record in the batch.
7676
* @param sleep the duration to sleep; the actual sleep time will be larger of this value
77-
* and the container's {@code maxPollInterval}, which defaults to 5 seconds.
77+
* and the container's {@code pollTimeout}, which defaults to 5 seconds.
7878
* @since 2.8.7
7979
*/
8080
default void nack(int index, Duration sleep) {

0 commit comments

Comments
 (0)