-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce interfaces fr delegating clients, use them in instrumented …
…clients (#136)
- Loading branch information
1 parent
4bddf07
commit a5da5c0
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...e-kafka-clients/src/main/java/com/linkedin/kafka/clients/consumer/DelegatingConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright 2019 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information. | ||
*/ | ||
|
||
package com.linkedin.kafka.clients.consumer; | ||
|
||
import org.apache.kafka.clients.consumer.Consumer; | ||
|
||
|
||
public interface DelegatingConsumer<K, V> extends Consumer<K, V> { | ||
Consumer<K, V> getDelegate(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...e-kafka-clients/src/main/java/com/linkedin/kafka/clients/producer/DelegatingProducer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright 2019 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information. | ||
*/ | ||
|
||
package com.linkedin.kafka.clients.producer; | ||
|
||
import org.apache.kafka.clients.producer.Producer; | ||
|
||
|
||
public interface DelegatingProducer<K, V> extends Producer<K, V> { | ||
Producer<K, V> getDelegate(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters