Files
Nikita Kibitkin 3c6f7a54d3 Add property to await async listener results on stop
Spring Kafka 4.2 adds ContainerProperties#setAwaitAsyncResultsOnStop:
when the container stops, in-flight asynchronous listener results
(CompletableFuture, Mono, Kotlin suspend functions) are awaited within
the shutdown timeout and cancelled afterwards, so that listener work
does not outlive the container.

This commit adds spring.kafka.listener.await-async-results-on-stop so
that this can be enabled with configuration rather than a
ContainerCustomizer.

See gh-51774

Signed-off-by: Nikita Kibitkin <nikita.n.kibitkin@gmail.com>
2026-09-16 15:13:31 +01:00
..
2026-05-14 15:02:24 +01:00