Package org.springframework.kafka.config
Interface KafkaStreamsCustomizer
- All Known Implementing Classes:
CompositeKafkaStreamsCustomizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface that can be used to configure
KafkaStreams directly.- Since:
- 2.1.5
- Author:
- Nurettin Yilmaz, Almog Gavra
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.apache.kafka.streams.KafkaStreams kafkaStreams) Customize the instance ofKafkaStreamsafterStreamsBuilderFactoryBeanhas applied its default configurations.default org.apache.kafka.streams.KafkaStreamsinitKafkaStreams(org.apache.kafka.streams.Topology topology, Properties properties, org.apache.kafka.streams.KafkaClientSupplier clientSupplier) Customize the instantiation of theKafkaStreamsinstance.
-
Method Details
-
initKafkaStreams
default org.apache.kafka.streams.KafkaStreams initKafkaStreams(org.apache.kafka.streams.Topology topology, Properties properties, org.apache.kafka.streams.KafkaClientSupplier clientSupplier) Customize the instantiation of theKafkaStreamsinstance. This happens before the modifications made byStreamsBuilderFactoryBean.- Parameters:
topology- the full topologyproperties- the configuration propertiesclientSupplier- the client supplier- Returns:
- a new instance of
KafkaStreams - Since:
- 3.3.0
-
customize
void customize(org.apache.kafka.streams.KafkaStreams kafkaStreams) Customize the instance ofKafkaStreamsafterStreamsBuilderFactoryBeanhas applied its default configurations.- Parameters:
kafkaStreams- the instantiated Kafka Streams instance
-