mirror of
https://github.com/valitydev/daway.git
synced 2024-11-06 08:35:23 +00:00
rollback to stable version (#38)
This commit is contained in:
parent
78a270da8e
commit
917cb0a887
5
pom.xml
5
pom.xml
@ -62,6 +62,11 @@
|
||||
</dependency>
|
||||
|
||||
<!--Thrirdparty libs-->
|
||||
<dependency>
|
||||
<groupId>de.codecentric</groupId>
|
||||
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||||
<version>2.6.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
|
@ -1,6 +1,6 @@
|
||||
package dev.vality.newway.config;
|
||||
|
||||
import dev.vality.kafka.common.util.ExponentialBackOffDefaultErrorHandlerFactory;
|
||||
import dev.vality.kafka.common.exception.handler.SeekToCurrentWithSleepBatchErrorHandler;
|
||||
import dev.vality.machinegun.eventsink.MachineEvent;
|
||||
import dev.vality.newway.config.properties.KafkaConsumerProperties;
|
||||
import dev.vality.newway.config.properties.KafkaSslProperties;
|
||||
@ -179,7 +179,7 @@ public class KafkaConfig {
|
||||
factory.setConsumerFactory(consumerFactory);
|
||||
factory.setBatchListener(true);
|
||||
factory.getContainerProperties().setAckMode(ContainerProperties.AckMode.MANUAL);
|
||||
factory.setCommonErrorHandler(ExponentialBackOffDefaultErrorHandlerFactory.create());
|
||||
factory.setBatchErrorHandler(new SeekToCurrentWithSleepBatchErrorHandler());
|
||||
factory.setConcurrency(threadsNumber);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user