@ConfigurationProperties(prefix="spring.kafka")
public class KafkaProperties
extends java.lang.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.Cleanup |
static class |
KafkaProperties.Consumer |
static class |
KafkaProperties.IsolationLevel |
static class |
KafkaProperties.Jaas |
static class |
KafkaProperties.Listener |
static class |
KafkaProperties.Producer |
static class |
KafkaProperties.Security |
static class |
KafkaProperties.Ssl |
static class |
KafkaProperties.Streams
High (and some medium) priority Streams properties and a general properties bucket.
|
static class |
KafkaProperties.Template |
| Constructor and Description |
|---|
KafkaProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
buildAdminProperties()
Create an initial map of admin properties from the state of this instance.
|
java.util.Map<java.lang.String,java.lang.Object> |
buildConsumerProperties()
Create an initial map of consumer properties from the state of this instance.
|
java.util.Map<java.lang.String,java.lang.Object> |
buildProducerProperties()
Create an initial map of producer properties from the state of this instance.
|
java.util.Map<java.lang.String,java.lang.Object> |
buildStreamsProperties()
Create an initial map of streams properties from the state of this instance.
|
KafkaProperties.Admin |
getAdmin() |
java.util.List<java.lang.String> |
getBootstrapServers() |
java.lang.String |
getClientId() |
KafkaProperties.Consumer |
getConsumer() |
KafkaProperties.Jaas |
getJaas() |
KafkaProperties.Listener |
getListener() |
KafkaProperties.Producer |
getProducer() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
KafkaProperties.Security |
getSecurity() |
KafkaProperties.Ssl |
getSsl() |
KafkaProperties.Streams |
getStreams() |
KafkaProperties.Template |
getTemplate() |
void |
setBootstrapServers(java.util.List<java.lang.String> bootstrapServers) |
void |
setClientId(java.lang.String clientId) |
public java.util.List<java.lang.String> getBootstrapServers()
public void setBootstrapServers(java.util.List<java.lang.String> bootstrapServers)
public java.lang.String getClientId()
public void setClientId(java.lang.String clientId)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public KafkaProperties.Consumer getConsumer()
public KafkaProperties.Producer getProducer()
public KafkaProperties.Listener getListener()
public KafkaProperties.Admin getAdmin()
public KafkaProperties.Streams getStreams()
public KafkaProperties.Ssl getSsl()
public KafkaProperties.Jaas getJaas()
public KafkaProperties.Template getTemplate()
public KafkaProperties.Security getSecurity()
public java.util.Map<java.lang.String,java.lang.Object> buildConsumerProperties()
This allows you to add additional properties, if necessary, and override the default kafkaConsumerFactory bean.
public java.util.Map<java.lang.String,java.lang.Object> buildProducerProperties()
This allows you to add additional properties, if necessary, and override the default kafkaProducerFactory bean.
public java.util.Map<java.lang.String,java.lang.Object> buildAdminProperties()
This allows you to add additional properties, if necessary, and override the default kafkaAdmin bean.
public java.util.Map<java.lang.String,java.lang.Object> buildStreamsProperties()
This allows you to add additional properties, if necessary.