Class KafkaProperties
java.lang.Object
org.springframework.boot.autoconfigure.kafka.KafkaProperties
Configuration properties for Spring for Apache Kafka.
 
Users should refer to Kafka documentation for complete descriptions of these properties.
- Since:
- 1.5.0
- Author:
- Gary Russell, Stephane Nicoll, Artem Bilan, Nakul Mishra, Tomaz Fernandes, Andy Wilkinson, Scott Frederick
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic enumstatic classstatic classstatic classstatic classstatic classstatic classstatic classHigh (and some medium) priority Streams properties and a general properties bucket.static class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuildAdminProperties(SslBundles sslBundles) Create an initial map of admin properties from the state of this instance.Create an initial map of consumer properties from the state of this instance.buildConsumerProperties(SslBundles sslBundles) Create an initial map of consumer properties from the state of this instance.Create an initial map of producer properties from the state of this instance.buildProducerProperties(SslBundles sslBundles) Create an initial map of producer properties from the state of this instance.buildStreamsProperties(SslBundles sslBundles) Create an initial map of streams properties from the state of this instance.getAdmin()getJaas()getRetry()getSsl()voidsetBootstrapServers(List<String> bootstrapServers) voidsetClientId(String clientId) 
- 
Constructor Details- 
KafkaPropertiespublic KafkaProperties()
 
- 
- 
Method Details- 
getBootstrapServers
- 
setBootstrapServers
- 
getClientId
- 
setClientId
- 
getProperties
- 
getConsumer
- 
getProducer
- 
getListener
- 
getAdmin
- 
getStreams
- 
getSsl
- 
getJaas
- 
getTemplate
- 
getSecurity
- 
getRetry
- 
buildConsumerPropertiesCreate 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:
- the consumer properties initialized with the customizations defined on this instance
 
- 
buildConsumerPropertiesCreate 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.- Parameters:
- sslBundles- bundles providing SSL trust material
- Returns:
- the consumer properties initialized with the customizations defined on this instance
 
- 
buildProducerPropertiesCreate 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:
- the producer properties initialized with the customizations defined on this instance
 
- 
buildProducerPropertiesCreate 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.- Parameters:
- sslBundles- bundles providing SSL trust material
- Returns:
- the producer properties initialized with the customizations defined on this instance
 
- 
buildAdminPropertiesCreate 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.- Parameters:
- sslBundles- bundles providing SSL trust material
- Returns:
- the admin properties initialized with the customizations defined on this instance
 
- 
buildStreamsPropertiesCreate an initial map of streams properties from the state of this instance.This allows you to add additional properties, if necessary. - Parameters:
- sslBundles- bundles providing SSL trust material
- Returns:
- the streams properties initialized with the customizations defined on this instance
 
 
-