Migrate deprecated Spring Kafka error handlers
MSALMigrate error handlers deprecated in Spring Kafka 2.8.x to their replacements.
org. openrewrite. java. spring. kafka. UpgradeSpringKafka_2_8_ErrorHandlersmod run . --recipe= org. openrewrite. java. spring. kafka. UpgradeSpringKafka_2_8_ErrorHandlersInstall 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.
- Change method name
org.springframework.kafka.listener.SeekToCurrentErrorHandler handle(..)tohandleRemaining - Change method name
org.springframework.kafka.config.AbstractKafkaListenerContainerFactory setErrorHandler(..)tosetCommonErrorHandler - Change type
SeekToCurrentErrorHandlertoDefaultErrorHandler - Change type
SeekToCurrentBatchErrorHandlertoDefaultErrorHandler - Move
DefaultErrorHandler.setBackOff(BackOff)to the constructor