Skip to content

Commit

Permalink
Fix Kafka Streams example in the documentation (#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seungpang authored May 28, 2024
1 parent af26d9b commit c65ce27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public class KafkaStreamsConfig {
stream
.mapValues((ValueMapper<String, String>) String::toUpperCase)
.groupByKey()
.windowedBy(TimeWindows.of(Duration.ofMillis(1_000)))
.windowedBy(TimeWindows.ofSizeWithNoGrace(Duration.ofMillis(1_000)))
.reduce((String value1, String value2) -> value1 + value2,
Named.as("windowStore"))
.toStream()
Expand Down

0 comments on commit c65ce27

Please sign in to comment.