@ConfigurationProperties(prefix="spring.kafka") public class KafkaProperties extends Object
Users should refer to Kafka documentation for complete descriptions of these properties.
Modifier and Type | Class and Description |
---|---|
static class |
KafkaProperties.Admin |
static class |
KafkaProperties.Consumer |
static class |
KafkaProperties.Jaas |
static class |
KafkaProperties.Listener |
static class |
KafkaProperties.Producer |
static class |
KafkaProperties.Ssl |
static class |
KafkaProperties.Template |
Constructor and Description |
---|
KafkaProperties() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
buildAdminProperties()
Create an initial map of admin properties from the state of this instance.
|
Map<String,Object> |
buildConsumerProperties()
Create an initial map of consumer properties from the state of this instance.
|
Map<String,Object> |
buildProducerProperties()
Create an initial map of producer properties from the state of this instance.
|
KafkaProperties.Admin |
getAdmin() |
List<String> |
getBootstrapServers() |
String |
getClientId() |
KafkaProperties.Consumer |
getConsumer() |
KafkaProperties.Jaas |
getJaas() |
KafkaProperties.Listener |
getListener() |
KafkaProperties.Producer |
getProducer() |
Map<String,String> |
getProperties() |
KafkaProperties.Ssl |
getSsl() |
KafkaProperties.Template |
getTemplate() |
void |
setBootstrapServers(List<String> bootstrapServers) |
void |
setClientId(String clientId) |
public String getClientId()
public void setClientId(String clientId)
public KafkaProperties.Consumer getConsumer()
public KafkaProperties.Producer getProducer()
public KafkaProperties.Listener getListener()
public KafkaProperties.Admin getAdmin()
public KafkaProperties.Ssl getSsl()
public KafkaProperties.Jaas getJaas()
public KafkaProperties.Template getTemplate()
public Map<String,Object> buildConsumerProperties()
This allows you to add additional properties, if necessary, and override the default kafkaConsumerFactory bean.
public Map<String,Object> buildProducerProperties()
This allows you to add additional properties, if necessary, and override the default kafkaProducerFactory bean.
public Map<String,Object> buildAdminProperties()
This allows you to add additional properties, if necessary, and override the default kafkaAdmin bean.
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.