Class KafkaProperties
java.lang.Object
org.springframework.boot.kafka.autoconfigure.KafkaProperties
Configuration properties for Spring for Apache Kafka.
Users should refer to Kafka documentation for complete descriptions of these properties.
- Since:
- 4.0.0
- Author:
- Gary Russell, Stephane Nicoll, Artem Bilan, Nakul Mishra, Tomaz Fernandes, Andy Wilkinson, Scott Frederick, Yanming Zhou, Nikita Kibitkin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enumstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classHigh (and some medium) priority Streams properties and a general properties bucket.static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofKafkaConfigBuilderDeprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofKafkaConfigBuilderDeprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofKafkaConfigBuildergetAdmin()getJaas()getRetry()getSsl()voidsetBootstrapServers(List<String> bootstrapServers) voidsetClientId(@Nullable String clientId)
-
Constructor Details
-
KafkaProperties
public KafkaProperties()
-
-
Method Details
-
getBootstrapServers
-
setBootstrapServers
-
getClientId
-
setClientId
-
getProperties
-
getConsumer
-
getProducer
-
getListener
-
getAdmin
-
getStreams
-
getSsl
-
getJaas
-
getTemplate
-
getSecurity
-
getRetry
-
buildConsumerProperties
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofKafkaConfigBuilderCreate an initial map of consumer properties from the state of this instance.This allows you to add additional properties, if necessary, and override the default
kafkaConsumerFactorybean.- Returns:
- common and consumer properties initialized with the customizations defined on this instance
-
buildProducerProperties
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofKafkaConfigBuilderCreate an initial map of producer properties from the state of this instance.This allows you to add additional properties, if necessary, and override the default
kafkaProducerFactorybean.- Returns:
- common and producer properties initialized with the customizations defined on this instance
-
buildAdminProperties
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofKafkaConfigBuilderCreate an initial map of admin properties from the state of this instance.This allows you to add additional properties, if necessary, and override the default
kafkaAdminbean.- Returns:
- common and admin properties initialized with the customizations defined on this instance
-
buildStreamsProperties
Deprecated, for removal: This API element is subject to removal in a future version.since 4.2.0 for removal in 4.4.0 in favor ofKafkaConfigBuilderCreate an initial map of streams properties from the state of this instance.This allows you to add additional properties, if necessary.
- Returns:
- common and streams properties initialized with the customizations defined on this instance
-
KafkaConfigBuilder