Skip to main content
DLC provides a default KafkaSourceDescription with the name defaultKafkaSourceDesc if no Kafka source has been defined.

Configuration properties

Properties for a Kafka Source are defined by name in the dlc.messaging.kafka namespace, and are picked up as configurations for the DLC.
KeyRequiredTypeDescription
topics-to-includeSet<String>Topics to include. See source to topic matching.
topics-to-excludeSet<String>Topics to exclude. See source to topic matching.
accepts-topic-overridesBooleanWhether this source is allowed to accept Topic Overrides in the Load Request.

YAML example

dlc:
  messaging:
    kafka:
      sources:
        MyKafkaSource:
          topics-to-exclude:
            - Topic1
          topics-to-include:
            - Topic2
          accepts-topic-overrides: true

Java configuration

KafkaSourceDescription Spring Beans are picked up as configurations for the DLC.
ParameterRequiredTypeDescription
nameYStringName of the source.
topicsToIncludeSet<String>Topics to include. See source to topic matching.
topicsToExcludeSet<String>Topics to exclude. See source to topic matching.
acceptsTopicOverridesBooleanWhether this source is allowed to accept Topic Overrides in the Load Request.

Java example

@Bean
public KafkaSourceDescription kafkaSourceDescription(){
	return KafkaSourceDescription.builder("KafkaSource")
			.topicsToExclude(Set.of("Topic1"))
			.topicsToInclude(Set.of("Topic2"))
			.acceptsTopicOverrides(true)
			.build();
}