mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Polish "Use Kafka's StreamsBuilderFactoryBeanConfigurer"
See gh-46675
This commit is contained in:
+2
-1
@@ -74,7 +74,8 @@ include-code::MyKafkaStreamsConfiguration[]
|
||||
By default, the streams managed by the javadoc:org.apache.kafka.streams.StreamsBuilder[] object are started automatically.
|
||||
You can customize this behavior using the configprop:spring.kafka.streams.auto-startup[] property.
|
||||
|
||||
TIP: For advanced configuration, the arbitrary javadoc:org.springframework.kafka.config.StreamsBuilderFactoryBeanConfigurer[] beans can be registered to configure the javadoc:org.springframework.kafka.config.StreamsBuilderFactoryBean[] bean before the javadoc:org.apache.kafka.streams.StreamsBuilder[] bean is initialized.
|
||||
TIP: You can also register an arbitrary number of beans that implement javadoc:org.springframework.kafka.config.StreamsBuilderFactoryBeanConfigurer[] for more advanced customizations.
|
||||
|
||||
|
||||
|
||||
[[messaging.kafka.additional-properties]]
|
||||
|
||||
+2
-3
@@ -87,12 +87,11 @@ class KafkaStreamsAnnotationDrivenConfiguration {
|
||||
KafkaAutoConfiguration.applySslBundle(properties, streams.getSslBundle());
|
||||
}
|
||||
|
||||
private static final class KafkaPropertiesStreamsBuilderFactoryBeanConfigurer
|
||||
implements StreamsBuilderFactoryBeanConfigurer {
|
||||
static class KafkaPropertiesStreamsBuilderFactoryBeanConfigurer implements StreamsBuilderFactoryBeanConfigurer {
|
||||
|
||||
private final KafkaProperties properties;
|
||||
|
||||
private KafkaPropertiesStreamsBuilderFactoryBeanConfigurer(KafkaProperties properties) {
|
||||
KafkaPropertiesStreamsBuilderFactoryBeanConfigurer(KafkaProperties properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user