@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.Consumer |
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> |
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.
|
List<String> |
getBootstrapServers() |
String |
getClientId() |
KafkaProperties.Consumer |
getConsumer() |
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) |
void |
setProperties(Map<String,String> properties) |
public String getClientId()
public void setClientId(String clientId)
public KafkaProperties.Consumer getConsumer()
public KafkaProperties.Producer getProducer()
public KafkaProperties.Listener getListener()
public KafkaProperties.Ssl getSsl()
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.
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.