Skip to content

Commit f173887

Browse files
committed
GH-1845: Use stoppableSleep() for Authz Sleeps
1 parent ce298f5 commit f173887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ private void debugRecords(@Nullable ConsumerRecords<K, V> records) {
14471447

14481448
private void sleepFor(Duration duration) {
14491449
try {
1450-
TimeUnit.MILLISECONDS.sleep(duration.toMillis());
1450+
ListenerUtils.stoppableSleep(KafkaMessageListenerContainer.this, duration.toMillis());
14511451
}
14521452
catch (InterruptedException e) {
14531453
this.logger.error(e, "Interrupted while sleeping");

0 commit comments

Comments
 (0)