@ConfigurationProperties(prefix="axon.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.Fetcher
Fetches messages from Kafka
|
static class |
KafkaProperties.Producer |
static class |
KafkaProperties.Publisher
Publishes axon messages to Kafka
|
static class |
KafkaProperties.Ssl |
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() |
String |
getDefaultTopic() |
KafkaProperties.Fetcher |
getFetcher() |
KafkaProperties.Producer |
getProducer() |
Map<String,String> |
getProperties() |
KafkaProperties.Ssl |
getSsl() |
void |
put(String key,
String value) |
void |
setBootstrapServers(List<String> bootstrapServers) |
void |
setClientId(String clientId) |
void |
setDefaultTopic(String defaultTopic) |
void |
setProperties(Map<String,String> properties) |
public String getClientId()
public void setClientId(String clientId)
public String getDefaultTopic()
public void setDefaultTopic(String defaultTopic)
public KafkaProperties.Consumer getConsumer()
public KafkaProperties.Producer getProducer()
public KafkaProperties.Fetcher getFetcher()
public KafkaProperties.Ssl getSsl()
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 © 2010–2018. All rights reserved.