RecordRecoverableProcessor and DltAwareProcessor example (#254)

* example implementation with tests

update tests and README
Add implementation of junit

* Added fixes for comments

Made the test much more deterministic

* Fixed compilation error from IDE vs CLI invocation

* Removed unnecessary annotation

Handled by spring boot, not needed for Kafka autoconfiguration.
This commit is contained in:
Steven Gantz
2024-01-23 11:06:38 -05:00
committed by GitHub
parent b6462f4652
commit 13bc86a240
14 changed files with 853 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ class BatchProduce extends Base {
@Bean
Function<List<String>, List<Message<String>>> consumer() {
return list -> list.stream()
.map(string -> string.toUpperCase())
.map(String::toUpperCase)
.map(uppercasedString -> MessageBuilder.withPayload(uppercasedString).build())
.collect(Collectors.toList());
}