@@ -44,9 +44,9 @@ public interface KafkaRecordBuilder {
44
44
* <p>
45
45
* This is required to successfully build a {@link KafkaRecord}.
46
46
*
47
- * @param topic the name of the topic.
48
- * @return this builder
49
- * @throws IllegalArgumentException if topic is not a valid name for a Kafka topic
47
+ * @param topic The name of the topic.
48
+ * @return This builder.
49
+ * @throws IllegalArgumentException If the topic is not a valid name for a Kafka topic.
50
50
* @since 4.4.0
51
51
*/
52
52
@ NotNull KafkaRecordBuilder topic (@ NotNull String topic );
@@ -55,140 +55,140 @@ public interface KafkaRecordBuilder {
55
55
* Set the key of the Kafka record.
56
56
*
57
57
* @param key the value of the key.
58
- * @return this builder
58
+ * @return This builder.
59
59
* @since 4.4.0
60
60
*/
61
61
@ NotNull KafkaRecordBuilder key (@ NotNull ByteBuffer key );
62
62
63
63
/**
64
64
* Set the key of the Kafka record.
65
65
*
66
- * @param key the value of the key.
67
- * @return this builder
66
+ * @param key The value of the key.
67
+ * @return This builder.
68
68
* @since 4.4.0
69
69
*/
70
70
@ NotNull KafkaRecordBuilder key (byte @ NotNull [] key );
71
71
72
72
/**
73
73
* Set the key of the Kafka record.
74
74
*
75
- * @param key the value of the key. {@link java.nio.charset.StandardCharsets#UTF_8} is used for encoding.
76
- * @return this builder
75
+ * @param key The value of the key. {@link java.nio.charset.StandardCharsets#UTF_8} is used for encoding.
76
+ * @return This builder.
77
77
* @since 4.4.0
78
78
*/
79
79
@ NotNull KafkaRecordBuilder key (@ NotNull String key );
80
80
81
81
/**
82
82
* Set the key of the Kafka record.
83
83
*
84
- * @param key the value of the key.
85
- * @param charset the {@link Charset} used for encoding.
86
- * @return this builder
84
+ * @param key The value of the key.
85
+ * @param charset The {@link Charset} used for encoding.
86
+ * @return This builder.
87
87
* @since 4.4.0
88
88
*/
89
89
@ NotNull KafkaRecordBuilder key (@ NotNull String key , @ NotNull Charset charset );
90
90
91
91
/**
92
92
* Set the value of the Kafka record.
93
93
*
94
- * @param value the value of the Kafka value.
95
- * @return this builder
94
+ * @param value The value of the Kafka value.
95
+ * @return This builder.
96
96
* @since 4.4.0
97
97
*/
98
98
@ NotNull KafkaRecordBuilder value (@ NotNull ByteBuffer value );
99
99
100
100
/**
101
101
* Set the value of the Kafka record.
102
102
*
103
- * @param value the value of the Kafka value.
104
- * @return this builder
103
+ * @param value The value of the Kafka value.
104
+ * @return This builder.
105
105
* @since 4.4.0
106
106
*/
107
107
@ NotNull KafkaRecordBuilder value (byte @ NotNull [] value );
108
108
109
109
/**
110
110
* Set the value of the Kafka record.
111
111
*
112
- * @param value the value of the Kafka value. {@link java.nio.charset.StandardCharsets#UTF_8} is used for encoding.
113
- * @return this builder
112
+ * @param value The value of the Kafka value. {@link java.nio.charset.StandardCharsets#UTF_8} is used for encoding.
113
+ * @return This builder.
114
114
* @since 4.4.0
115
115
*/
116
116
@ NotNull KafkaRecordBuilder value (@ NotNull String value );
117
117
118
118
/**
119
119
* Set the value of the Kafka record.
120
120
*
121
- * @param value the value of the Kafka value.
122
- * @param charset the {@link Charset} used for encoding.
123
- * @return this builder
121
+ * @param value The value of the Kafka value.
122
+ * @param charset The {@link Charset} used for encoding.
123
+ * @return This builder.
124
124
* @since 4.4.0
125
125
*/
126
126
@ NotNull KafkaRecordBuilder value (@ NotNull String value , @ NotNull Charset charset );
127
127
128
128
/**
129
129
* Add a header to the Kafka record.
130
130
*
131
- * @param key the key of the header.
132
- * @param value the value of the header.
133
- * @return this builder
131
+ * @param key The key of the header.
132
+ * @param value The value of the header.
133
+ * @return This builder.
134
134
* @since 4.4.0
135
135
*/
136
136
@ NotNull KafkaRecordBuilder header (@ NotNull String key , @ NotNull ByteBuffer value );
137
137
138
138
/**
139
139
* Add a header to the Kafka record.
140
140
*
141
- * @param key the key of the header.
142
- * @param value the value of the header.
143
- * @return this builder
141
+ * @param key The key of the header.
142
+ * @param value The value of the header.
143
+ * @return This builder.
144
144
* @since 4.4.0
145
145
*/
146
146
@ NotNull KafkaRecordBuilder header (@ NotNull String key , byte @ NotNull [] value );
147
147
148
148
/**
149
149
* Add a header to the Kafka record.
150
150
*
151
- * @param key the key of the header.
152
- * @param value the value of the header. {@link java.nio.charset.StandardCharsets#UTF_8} is used for encoding.
153
- * @return this builder
151
+ * @param key The key of the header.
152
+ * @param value The value of the header. {@link java.nio.charset.StandardCharsets#UTF_8} is used for encoding.
153
+ * @return This builder.
154
154
* @since 4.4.0
155
155
*/
156
156
@ NotNull KafkaRecordBuilder header (@ NotNull String key , @ NotNull String value );
157
157
158
158
/**
159
159
* Add a header to the Kafka record.
160
160
*
161
- * @param key the key of the header.
162
- * @param value the value of the header.
163
- * @param charset the {@link Charset} used for encoding the {@code value}.
164
- * @return this builder
161
+ * @param key The key of the header.
162
+ * @param value The value of the header.
163
+ * @param charset The {@link Charset} used for encoding the {@code value}.
164
+ * @return This builder.
165
165
* @since 4.4.0
166
166
*/
167
167
@ NotNull KafkaRecordBuilder header (@ NotNull String key , @ NotNull String value , @ NotNull Charset charset );
168
168
169
169
/**
170
170
* Set the timestamp of the Kafka record.
171
171
*
172
- * @param timestamp the value of the Kafka timestamp, in milliseconds since UNIX epoch.
173
- * @return this builder
172
+ * @param timestamp The value of the Kafka timestamp, in milliseconds since UNIX epoch.
173
+ * @return This builder.
174
174
* @since 4.4.0
175
175
*/
176
176
@ NotNull KafkaRecordBuilder timestamp (long timestamp );
177
177
178
178
/**
179
179
* Set the partition number of the Kafka record.
180
180
*
181
- * @param partition the value of the Kafka partition number.
182
- * @return this builder
181
+ * @param partition The value of the Kafka partition number.
182
+ * @return This builder.
183
183
* @since 4.4.0
184
184
*/
185
185
@ NotNull KafkaRecordBuilder partition (int partition );
186
186
187
187
/**
188
188
* Create a new {@link KafkaRecord} from the current state of this builder. The builder can be reused afterwards.
189
189
*
190
- * @return a new {@link KafkaRecord} containing a snapshot of the current state of this builder.
191
- * @throws NullPointerException if the topic was not set.
190
+ * @return A new {@link KafkaRecord} containing a snapshot of the current state of this builder.
191
+ * @throws NullPointerException If the topic was not set.
192
192
* @since 4.4.0
193
193
*/
194
194
@ NotNull KafkaRecord build ();
0 commit comments