-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
model and config change for kafka-sidecar issue #19 implemetation
- Loading branch information
1 parent
0561fc9
commit b0dadb3
Showing
4 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
kafka-entity/src/main/java/com/networknt/kafka/entity/DeadLetterQueueReplayResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
package com.networknt.kafka.entity; | ||
|
||
import java.util.Objects; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class DeadLetterQueueReplayResponse { | ||
|
||
private String description; | ||
private Long records; | ||
private java.util.List<String> topics; | ||
private String group; | ||
private String instance; | ||
|
||
public DeadLetterQueueReplayResponse () { | ||
} | ||
|
||
@JsonProperty("description") | ||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
@JsonProperty("records") | ||
public Long getRecords() { | ||
return records; | ||
} | ||
|
||
public void setRecords(Long records) { | ||
this.records = records; | ||
} | ||
|
||
@JsonProperty("topics") | ||
public java.util.List<String> getTopics() { | ||
return topics; | ||
} | ||
|
||
public void setTopics(java.util.List<String> topics) { | ||
this.topics = topics; | ||
} | ||
|
||
@JsonProperty("group") | ||
public String getGroup() { | ||
return group; | ||
} | ||
|
||
public void setGroup(String group) { | ||
this.group = group; | ||
} | ||
|
||
@JsonProperty("instance") | ||
public String getInstance() { | ||
return instance; | ||
} | ||
|
||
public void setInstance(String instance) { | ||
this.instance = instance; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
|
||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
|
||
DeadLetterQueueReplayResponse DeadLetterQueueReplayResponse = (DeadLetterQueueReplayResponse) o; | ||
|
||
return Objects.equals(description, DeadLetterQueueReplayResponse.description) && | ||
Objects.equals(records, DeadLetterQueueReplayResponse.records) && | ||
Objects.equals(topics, DeadLetterQueueReplayResponse.topics) && | ||
Objects.equals(group, DeadLetterQueueReplayResponse.group); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(description, records, topics, group); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class DeadLetterQueueReplayResponse {\n"); | ||
sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" records: ").append(toIndentedString(records)).append("\n"); sb.append(" topics: ").append(toIndentedString(topics)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces | ||
* (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters