Skip to content

Commit 6c8d01a

Browse files
committed
Remove deprecated Acknowledgment.nack(long) method
nack(Duration) should be used instead.
1 parent 757f891 commit 6c8d01a

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,6 @@ public interface Acknowledgment {
3636
*/
3737
void acknowledge();
3838

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

0 commit comments

Comments
 (0)