类 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.
- 从以下版本开始:
- 1.5.0
- 作者:
- Gary Russell, Stephane Nicoll, Artem Bilan, Nakul Mishra, Tomaz Fernandes, Andy Wilkinson, Scott Frederick
-
嵌套类概要
嵌套类修饰符和类型类说明static class
static class
static class
static enum
static class
static class
static class
static class
static class
static class
static class
High (and some medium) priority Streams properties and a general properties bucket.static class
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明buildAdminProperties
(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()
void
setBootstrapServers
(List<String> bootstrapServers) void
setClientId
(String clientId)
-
构造器详细资料
-
KafkaProperties
public KafkaProperties()
-
-
方法详细资料
-
getBootstrapServers
-
setBootstrapServers
-
getClientId
-
setClientId
-
getProperties
-
getConsumer
-
getProducer
-
getListener
-
getAdmin
-
getStreams
-
getSsl
-
getJaas
-
getTemplate
-
getSecurity
-
getRetry
-
buildConsumerProperties
Create 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
kafkaConsumerFactory
bean.- 返回:
- the consumer properties initialized with the customizations defined on this instance
-
buildConsumerProperties
Create 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
kafkaConsumerFactory
bean.- 参数:
sslBundles
- bundles providing SSL trust material- 返回:
- the consumer properties initialized with the customizations defined on this instance
-
buildProducerProperties
Create 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
kafkaProducerFactory
bean.- 返回:
- the producer properties initialized with the customizations defined on this instance
-
buildProducerProperties
Create 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
kafkaProducerFactory
bean.- 参数:
sslBundles
- bundles providing SSL trust material- 返回:
- the producer properties initialized with the customizations defined on this instance
-
buildAdminProperties
Create 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
kafkaAdmin
bean.- 参数:
sslBundles
- bundles providing SSL trust material- 返回:
- the admin properties initialized with the customizations defined on this instance
-
buildStreamsProperties
Create an initial map of streams properties from the state of this instance.This allows you to add additional properties, if necessary.
- 参数:
sslBundles
- bundles providing SSL trust material- 返回:
- the streams properties initialized with the customizations defined on this instance
-