use of com.minchul.springkafkastudy.consumer.listener.DefaultMessageListener in project spring-kafka-study by MinChul-Son.
the class MessageListenerContainerConfig method kafkaMessageListenerContainer.
@Bean
public KafkaMessageListenerContainer<String, String> kafkaMessageListenerContainer() {
ContainerProperties containerProps = new ContainerProperties("test4");
containerProps.setGroupId("test4-container");
containerProps.setAckMode(ContainerProperties.AckMode.BATCH);
containerProps.setMessageListener(new DefaultMessageListener());
KafkaMessageListenerContainer<String, String> container = new KafkaMessageListenerContainer<>(containerFactory(), containerProps);
container.setAutoStartup(false);
return container;
}
Aggregations