Migrate Consumer.poll(long) to poll(Duration)

Proprietary

Migrates from the deprecated Consumer.poll(long) to poll(Duration) for Kafka 4.0 compatibility. Converts millisecond timeout values to Duration.ofMillis() calls.

io.moderne.kafka.MigrateConsumerPollToDuration
mod run . --recipe=io.moderne.kafka.MigrateConsumerPollToDuration

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