19
19
20
20
import org .apache .seatunnel .connectors .seatunnel .kafka .config .StartMode ;
21
21
22
+ import lombok .Data ;
22
23
import org .apache .kafka .common .TopicPartition ;
23
24
24
25
import java .io .Serializable ;
28
29
/**
29
30
* Kafka consumer metadata, include topic, bootstrap server etc.
30
31
*/
32
+
33
+ @ Data
31
34
public class ConsumerMetadata implements Serializable {
32
35
33
36
private String topic ;
@@ -40,75 +43,4 @@ public class ConsumerMetadata implements Serializable {
40
43
private Map <TopicPartition , Long > specificStartOffsets ;
41
44
private Long startOffsetsTimestamp ;
42
45
43
- public boolean isCommitOnCheckpoint () {
44
- return commitOnCheckpoint ;
45
- }
46
-
47
- public void setCommitOnCheckpoint (boolean commitOnCheckpoint ) {
48
- this .commitOnCheckpoint = commitOnCheckpoint ;
49
- }
50
-
51
- public String getTopic () {
52
- return topic ;
53
- }
54
-
55
- public void setTopic (String topic ) {
56
- this .topic = topic ;
57
- }
58
-
59
- public boolean isPattern () {
60
- return isPattern ;
61
- }
62
-
63
- public void setPattern (boolean pattern ) {
64
- isPattern = pattern ;
65
- }
66
-
67
- public String getBootstrapServers () {
68
- return bootstrapServers ;
69
- }
70
-
71
- public void setBootstrapServers (String bootstrapServers ) {
72
- this .bootstrapServers = bootstrapServers ;
73
- }
74
-
75
- public Properties getProperties () {
76
- return properties ;
77
- }
78
-
79
- public void setProperties (Properties properties ) {
80
- this .properties = properties ;
81
- }
82
-
83
- public String getConsumerGroup () {
84
- return consumerGroup ;
85
- }
86
-
87
- public void setConsumerGroup (String consumerGroup ) {
88
- this .consumerGroup = consumerGroup ;
89
- }
90
-
91
- public StartMode getStartMode () {
92
- return startMode ;
93
- }
94
-
95
- public void setStartMode (StartMode startMode ) {
96
- this .startMode = startMode ;
97
- }
98
-
99
- public Map <TopicPartition , Long > getSpecificStartOffsets () {
100
- return specificStartOffsets ;
101
- }
102
-
103
- public void setSpecificStartOffsets (Map <TopicPartition , Long > specificStartOffsets ) {
104
- this .specificStartOffsets = specificStartOffsets ;
105
- }
106
-
107
- public Long getStartOffsetsTimestamp () {
108
- return startOffsetsTimestamp ;
109
- }
110
-
111
- public void setStartOffsetsTimestamp (Long startOffsetsTimestamp ) {
112
- this .startOffsetsTimestamp = startOffsetsTimestamp ;
113
- }
114
46
}
0 commit comments