Skip to content

Commit

Permalink
GH-2128: Update nack() Javadoc (#3642)
Browse files Browse the repository at this point in the history
- Correct the Javadoc to specify `pollTimeout` instead of `maxPollInterval` for the `nack()` methods.

Fixes: #2128 

Issue: #2128
  • Loading branch information
sebastto authored Nov 27, 2024
1 parent 6bb9e0c commit 1c030ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public interface Acknowledgment {
* Must be called on the consumer thread.
* <p>
* @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) {
Expand Down Expand Up @@ -74,7 +74,7 @@ default void acknowledge(int index) {
* <p>
* @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) {
Expand Down

0 comments on commit 1c030ef

Please sign in to comment.