Package api.mpba.rastvdmy.config
Class KafkaTopConfig
java.lang.Object
api.mpba.rastvdmy.config.KafkaTopConfig
This class is responsible for the configuration of Kafka topics.
It provides a bean for creating a new Kafka topic named "messages".
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.clients.admin.NewTopic
This method provides a NewTopic bean.
-
Constructor Details
-
KafkaTopConfig
public KafkaTopConfig()
-
-
Method Details
-
createTopic
@Bean public org.apache.kafka.clients.admin.NewTopic createTopic()This method provides a NewTopic bean. The NewTopic represents a new topic to be created in Kafka. The name of the topic is "messages".- Returns:
- A NewTopic instance representing a topic named "messages".
-