confluentinc / confluentinc/examples
Multiple Interceptor for Kafka Producer is not working
Open
- 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.