Skip to content

How do I custom consumer Interceptor for one record #1118

@rajeshhereforyou

Description

@rajeshhereforyou

Hi,

I'm trying to add a custom consumer interceptor using 'org.apache.kafka.clients.consumer.ConsumerInterceptor'. The problem I've here is the 'onConsume' method is taking 'ConsumerRecords<String, Object> records' but i'm looking for intercepting only one record at a time instead of a bunch of records.

How do i do that? Please suggest

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions