Skip to content

Commit 9a9f190

Browse files
committed
GH-2162: Fix Record Interceptor Javadocs
Resolves #2162
1 parent e46d298 commit 9a9f190

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: spring-kafka/src/main/java/org/springframework/kafka/config/AbstractKafkaListenerContainerFactory.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -304,19 +304,21 @@ public ContainerProperties getContainerProperties() {
304304

305305
/**
306306
* Set an interceptor to be called before calling the listener.
307-
* Does not apply to batch listeners.
307+
* Only used with record listeners.
308308
* @param recordInterceptor the interceptor.
309309
* @since 2.2.7
310+
* @see #setBatchInterceptor(BatchInterceptor)
310311
*/
311312
public void setRecordInterceptor(RecordInterceptor<K, V> recordInterceptor) {
312313
this.recordInterceptor = recordInterceptor;
313314
}
314315

315316
/**
316317
* Set a batch interceptor to be called before and after calling the listener.
317-
* Does not apply to batch listeners.
318+
* Only used with batch listeners.
318319
* @param batchInterceptor the interceptor.
319320
* @since 2.7
321+
* @see #setRecordInterceptor(RecordInterceptor)
320322
*/
321323
public void setBatchInterceptor(BatchInterceptor<K, V> batchInterceptor) {
322324
this.batchInterceptor = batchInterceptor;

0 commit comments

Comments
 (0)