Migrate to StreamsUncaughtExceptionHandler

Proprietary

Migrates handlers passed to the deprecated KafkaStreams#setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler) to the StreamsUncaughtExceptionHandler introduced in Kafka Streams 2.8. Anonymous classes, lambdas and named classes are converted, each returning SHUTDOWN_CLIENT; a named class that is also used as a JVM Thread.UncaughtExceptionHandler is left alone.

io.moderne.kafka.streams.MigrateStreamsUncaughtExceptionHandler
mod run . --recipe=io.moderne.kafka.streams.MigrateStreamsUncaughtExceptionHandler

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.