KafkaProperties.java
891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package properties;
import java.io.Serializable;
/**
* Created by markeloff on 2017/7/26.
*/
public class KafkaProperties implements Serializable {
private String topic;
private String brokers;
private String group;
private int replicationFactor;
public String getBrokers() {
return brokers;
}
public void setBrokers(String brokers) {
this.brokers = brokers;
}
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
public int getReplicationFactor() {
return replicationFactor;
}
public void setReplicationFactor(int replicationFactor) {
this.replicationFactor = replicationFactor;
}
public String getTopic() {
return topic;
}
public void setTopic(String topic) {
this.topic = topic;
}
}