Skip to content

Commit

Permalink
Remove deprecated Acknowledgment.nack(long) method
Browse files Browse the repository at this point in the history
nack(Duration) should be used instead.
  • Loading branch information
szpak committed Jun 6, 2022
1 parent 757f891 commit 6c8d01a
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,6 @@ public interface Acknowledgment {
*/
void acknowledge();

/**
* Negatively acknowledge the current record - discard remaining records from the poll
* and re-seek all partitions so that this record will be redelivered after the sleep
* time (in milliseconds). Must be called on the consumer thread.
* <p>
* @param sleepMillis the time to sleep in milliseconds; the actual sleep time will be larger
* of this value and the container's {@code maxPollInterval}, which defaults to 5 seconds.
* @since 2.3
* @deprecated in favor of {@link #nack(Duration)}
*/
@Deprecated(since = "2.8.7", forRemoval = true)
default void nack(long sleepMillis) {
nack(Duration.ofMillis(sleepMillis));
}

/**
* Negatively acknowledge the current record - discard remaining records from the poll
* and re-seek all partitions so that this record will be redelivered after the sleep
Expand Down

0 comments on commit 6c8d01a

Please sign in to comment.