Migrate Kafka Streams APIs removed in Kafka 4.0
ProprietaryKafka 4.0 removed the Kafka Streams APIs deprecated in 3.6 or earlier. This migrates the window factories, keeping their grace period, and the StreamsMetadata class that metadataForAllStreamsClients() and streamsMetadataForStore() return.
io. moderne. kafka. MigrateRemovedStreamsApismod run . --recipe= io. moderne. kafka. MigrateRemovedStreamsApisInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Migrate
TimeWindows.of()andSessionWindows.with()keeping their grace period - Change method name
org.apache.kafka.streams.kstream.SlidingWindows withTimeDifferenceAndGrace(java.time.Duration, java.time.Duration)toofTimeDifferenceAndGrace - Change type
org.apache.kafka.streams.state.StreamsMetadatatoorg.apache.kafka.streams.StreamsMetadata