mirror of
https://github.com/valitydev/deanonimus.git
synced 2024-11-06 02:05:16 +00:00
Use default error handler
This commit is contained in:
parent
9a988b35d0
commit
74c263db0d
@ -1,7 +1,7 @@
|
||||
package dev.vality.deanonimus.config;
|
||||
|
||||
import dev.vality.deanonimus.kafka.serde.SinkEventDeserializer;
|
||||
import dev.vality.kafka.common.exception.handler.ExponentialBackOffDefaultErrorHandler;
|
||||
import dev.vality.kafka.common.util.ExponentialBackOffDefaultErrorHandlerFactory;
|
||||
import dev.vality.machinegun.eventsink.MachineEvent;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.kafka.clients.consumer.ConsumerConfig;
|
||||
@ -17,7 +17,6 @@ import org.springframework.kafka.core.DefaultKafkaConsumerFactory;
|
||||
import org.springframework.kafka.listener.CommonErrorHandler;
|
||||
import org.springframework.kafka.listener.ConcurrentMessageListenerContainer;
|
||||
import org.springframework.kafka.listener.ContainerProperties;
|
||||
import org.springframework.util.backoff.ExponentialBackOff;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@ -76,7 +75,7 @@ public class KafkaConfig {
|
||||
}
|
||||
|
||||
public CommonErrorHandler kafkaErrorHandler() {
|
||||
return new ExponentialBackOffDefaultErrorHandler(new ExponentialBackOff());
|
||||
return ExponentialBackOffDefaultErrorHandlerFactory.create();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user