@ConfigurationProperties(prefix="axon.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.Consumer
Configures the Consumer which consumes records from a Kafka topic.
|
static class |
KafkaProperties.EventProcessorMode
Modes for message production and consumption.
|
static class |
KafkaProperties.Fetcher
Configures the Fetchers which fetches records from a Kafka Consumer to be put on an Event Stream.
|
static class |
KafkaProperties.MessageConverterMode
Modes for kafka message conversion.
|
static class |
KafkaProperties.Producer
Configures the Producer which produces new records for a Kafka topic.
|
static class |
KafkaProperties.Publisher
Configures the publisher used to provide Axon Event Messages as Kafka records to a Producer.
|
static class |
KafkaProperties.Ssl
Configures SSL specifics for a Broker, Consumer and/or Producer.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_TOPIC
The default topic constructed in absence of any configuration.
|
| Constructor and Description |
|---|
KafkaProperties() |
| Modifier and Type | Method and Description |
|---|---|
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.List<java.lang.String> |
getBootstrapServers() |
java.lang.String |
getClientId() |
KafkaProperties.Consumer |
getConsumer() |
java.lang.String |
getDefaultTopic() |
KafkaProperties.Fetcher |
getFetcher() |
KafkaProperties.MessageConverterMode |
getMessageConverterMode() |
KafkaProperties.Producer |
getProducer() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
KafkaProperties.Publisher |
getPublisher() |
KafkaProperties.Ssl |
getSsl() |
void |
put(java.lang.String key,
java.lang.String value) |
void |
setBootstrapServers(java.util.List<java.lang.String> bootstrapServers) |
void |
setClientId(java.lang.String clientId) |
void |
setDefaultTopic(java.lang.String defaultTopic) |
void |
setMessageConverterMode(KafkaProperties.MessageConverterMode messageConverterMode) |
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties) |
public static final java.lang.String DEFAULT_TOPIC
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.lang.String getDefaultTopic()
public void setDefaultTopic(java.lang.String defaultTopic)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
public void put(java.lang.String key,
java.lang.String value)
public KafkaProperties.Publisher getPublisher()
public KafkaProperties.Producer getProducer()
public KafkaProperties.Fetcher getFetcher()
public KafkaProperties.Consumer getConsumer()
public KafkaProperties.Ssl getSsl()
public void setMessageConverterMode(KafkaProperties.MessageConverterMode messageConverterMode)
public KafkaProperties.MessageConverterMode getMessageConverterMode()
public java.util.Map<java.lang.String,java.lang.Object> buildConsumerProperties()
This allows you to add additional properties, if necessary, and override the default consumerFactory
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 producerFactory
bean.
Copyright © 2010–2023. All rights reserved.