GitHub user apovzner opened a pull request:
https://github.com/apache/kafka/pull/854
KAFKA-3162: Added producer and consumer interceptors
This is the most of the KIP-42: Producer and consumer interceptor. (Except
exposing CRC and record sizes to the interceptor, which is coming as a separate
PR; tracked by KAFKA-3196).
This PR includes:
1. Add ProducerInterceptor interface and call its callbacks from
appropriate places in Kafka Producer.
2. Add ConsumerInterceptor interface and call its callbacks from
appropriate places in Kafka Consumer.
3. Add unit tests for interceptor changes
4. Add integration test for both mutable consumer and producer interceptors.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apovzner/kafka kip42
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/854.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #854
----
commit d851ab68fadfff4f80318251cdcb4caf2097e161
Author: Anna Povzner <[email protected]>
Date: 2016-02-03T00:40:55Z
KAFKA-3162 Added producer and consumer interceptors
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---