use of io.splitet.core.kafka.KafkaProperties in project eventapis by kloiasoft.
the class EventApisFactory method kafkaOperationsFactory.
@Bean
public ConsumerFactory<String, Operation> kafkaOperationsFactory() {
KafkaProperties properties = eventApisConfiguration.getEventBus().clone();
properties.getConsumer().setEnableAutoCommit(false);
return new DefaultKafkaConsumerFactory<>(properties.buildConsumerProperties(), new StringDeserializer(), new JsonDeserializer<>(Operation.class, objectMapper));
}
use of io.splitet.core.kafka.KafkaProperties in project eventapis by kloiasoft.
the class EventApisFactory method kafkaConsumerFactory.
@Bean
public ConsumerFactory<String, PublishedEventWrapper> kafkaConsumerFactory() {
KafkaProperties properties = eventApisConfiguration.getEventBus().clone();
properties.getConsumer().setEnableAutoCommit(false);
return new DefaultKafkaConsumerFactory<>(properties.buildConsumerProperties(), new StringDeserializer(), new JsonDeserializer<>(PublishedEventWrapper.class, objectMapper));
}
Aggregations