@Inherited @Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface KafkaConfig
| Modifier and Type | Required Element and Description |
|---|---|
String |
bootstrapServers |
| Modifier and Type | Optional Element and Description |
|---|---|
int |
defaultConsumerRetries
Default number of retries dispatching calls.
|
int |
defaultConsumerRetryBackoffMs
Default time in milli seconds to backoff between delivery retries.
|
int |
defaultFetchMaxWaitMs
Represents the kafka configuration property
fetch.max.wait.ms. |
int |
defaultLingerMs
Represents the kafka configuration property
linger.ms. |
int |
defaultProducerRetries
Represents the kafka configuration property
retries. |
int |
defaultRequestTimeoutMs
Represents the kafka configuration property
request.timeout.ms - for both consumer and producers. |
public abstract String bootstrapServers
public abstract int defaultConsumerRetries
public abstract int defaultConsumerRetryBackoffMs
public abstract int defaultLingerMs
linger.ms.public abstract int defaultFetchMaxWaitMs
fetch.max.wait.ms.public abstract int defaultProducerRetries
retries.public abstract int defaultRequestTimeoutMs
request.timeout.ms - for both consumer and producers.
Kafka's default value is 30000.
This should be larger than replica.lag.time.max.ms (a broker configuration) to reduce the possibility of message duplication due to unnecessary producer retries. The default for replica.lag.time.max.ms is 20000.
Copyright © 2019 JBoss by Red Hat. All rights reserved.