confluentinc / confluentinc/examples

Multiple Interceptor for Kafka Producer is not working

Open
#493 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
2.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hello Team,

Does Kafka support multiple interceptors for Producer and Consumer ? I have created one custom interceptor and also want to use the one provided by kafka. I have added those both in a list.

props.put (ProdocercConfig.INTERCEPTOR_CLASSES_CONFIG ,Array.asList(producerInterceptor.class.getName()),AuditProducerInterceptor.class.getName()));

However with this my kafka producer is not getting created.
Can anyone suggest a solution please? Is there any different way with which we can specify multiple interceptors?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.