DLC provides a default TupleSourceDescription with the name defaultTupleSourceDesc.
The only reason to make a new TupleSourceDescription is to organize topics logically.
Configuration properties
Properties for a Tuple Source are defined by name in the dlc.tuple.sources namespace,
and are picked up as configurations for the DLC.
| Key | Required | Type | Description |
|---|
| topics-to-include | | Set<String> | Topics to include. See source to topic matching. |
| topics-to-exclude | | Set<String> | Topics to exclude. See source to topic matching. |
YAML example
dlc:
tuple:
sources:
tupleSource:
topics-to-include:
- topic
Java configuration
TupleSourceDescription Spring Beans are picked up as configurations for the DLC.
| Parameter | Required | Type | Description |
|---|
| name | Y | String | Name of the source. |
| topicsToInclude | | Set<String> | Topics to include. See source to topic matching. |
| topicsToExclude | | Set<String> | Topics to exclude. See source to topic matching. |
Java example
@Bean
TupleSourceDescription source() {
return TupleSourceDescription.builder("tupleSource")
.topicsToInclude(Set.of("topic"))
.build();
}