Skip to content

Commit

Permalink
fixes #52 add deadLetterEnabled flag to the kafka-consumer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed May 10, 2021
1 parent 2e9eb85 commit cd256e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class KafkaConsumerConfig {
private String valueFormat;
private String backendApiHost;
private String backendApiPath;
private boolean deadLetterEnabled;
private String deadLetterTopicExt;
private boolean auditEnabled;
private String auditTopic;
Expand Down Expand Up @@ -144,6 +145,14 @@ public String getBackendApiPath() {
return backendApiPath;
}

public boolean isDeadLetterEnabled() {
return deadLetterEnabled;
}

public void setDeadLetterEnabled(boolean deadLetterEnabled) {
this.deadLetterEnabled = deadLetterEnabled;
}

public void setBackendApiPath(String backendApiPath) {
this.backendApiPath = backendApiPath;
}
Expand Down
2 changes: 2 additions & 0 deletions kafka-common/src/test/resources/config/kafka-consumer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ properties:
# basic.auth.credentials.source: ${kafka-consumer.basic.auth.credentials.source:USER_INFO}

# common configuration properties between active and reactive consumers
# Indicator if the dead letter topic is enabled.
deadLetterEnabled: ${kafka-consumer.deadLetterEnabled:true}
# The extension of the dead letter queue(topic) that is added to the original topic to form the dead letter topic
deadLetterTopicExt: ${kafka-consumer.deadLetterTopicExt:dlq}
# Indicator if the audit is enabled.
Expand Down

0 comments on commit cd256e1

Please sign in to comment.