Skip to content

Commit

Permalink
-Support for kafka-sink
Browse files Browse the repository at this point in the history
Signed-off-by: rajeshLovesToCode <[email protected]>
  • Loading branch information
rajeshLovesToCode committed Aug 11, 2023
1 parent 574c5f9 commit 3a73019
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public class TopicConfig {
static final Duration DEFAULT_HEART_BEAT_INTERVAL_DURATION = Duration.ofSeconds(5);


private static final Integer NUM_OF_PARTITIONS = 3;
private static final Short REPLICATION_FACTOR = 1;
private static final Integer DEFAULT_NUM_OF_PARTITIONS = 3;
private static final Short DEFAULT_REPLICATION_FACTOR = 1;


@JsonProperty("name")
Expand Down Expand Up @@ -146,10 +146,10 @@ public class TopicConfig {
private Boolean isCreate=Boolean.FALSE;

@JsonProperty("number_of_partitions")
private Integer numberOfPartions = NUM_OF_PARTITIONS;
private Integer numberOfPartions = DEFAULT_NUM_OF_PARTITIONS;

@JsonProperty("replication_factor")
private Short replicationFactor = REPLICATION_FACTOR;
private Short replicationFactor = DEFAULT_REPLICATION_FACTOR;

public String getGroupId() {
return groupId;
Expand Down

0 comments on commit 3a73019

Please sign in to comment.