-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[2163] Deprecate ProducerListener in favor of ProducerInterceptor #2225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2015-2021 the original author or authors. | ||
* Copyright 2015-2022 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -32,7 +32,10 @@ | |
* | ||
* @author Marius Bogoevici | ||
* @author Gary Russell | ||
* @deprecated since 3.0 in favor of {@link org.apache.kafka.clients.producer.ProducerInterceptor} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, we don't have a |
||
*/ | ||
|
||
@Deprecated(since = "3.0", forRemoval = true) | ||
public class LoggingProducerListener<K, V> implements ProducerListener<K, V> { | ||
|
||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2015-2020 the original author or authors. | ||
* Copyright 2015-2022 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -36,7 +36,11 @@ | |
* @author Endika Gutiérrez | ||
* | ||
* @see org.apache.kafka.clients.producer.Callback | ||
* | ||
* @deprecated since 3.0 in favor of {@link org.apache.kafka.clients.producer.ProducerInterceptor} | ||
*/ | ||
|
||
@Deprecated(since = "3.0", forRemoval = true) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we deprecate it, we have to replace its usage with the mentioned favor. I wonder if you ran your fix locally with the |
||
public interface ProducerListener<K, V> { | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "in favor of CompositeProducerInterceptor" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I have modified