Skip to content

GH-615: Docs - Migrating Legacy Error Handlers #2145

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

Merged
merged 1 commit into from
Mar 3, 2022

Conversation

garyrussell
Copy link
Contributor

@garyrussell garyrussell commented Mar 3, 2022

See #615

cherry-pick to 2.8.x

@artembilan artembilan merged commit 9741d28 into spring-projects:main Mar 3, 2022
@artembilan
Copy link
Member

... and cherry-picked to 2.8.x

@garyrussell garyrussell deleted the docs branch March 3, 2022 17:59

Refer to the javadocs in `CommonErrorHandler`.

To replace an `ErrorHandler` or `ConsumerAwareErrorHandler` implementation, you should implement `handleRecord()` and leave `remainingRecords()` to return `false` (default).
Copy link

@abhaygitty abhaygitty Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The handleRecord() method implementation is deprecated starting from 2.9 and I am using SpringBoot 3.0.2.
Any thoughts on getting around this or an alternative/replacement?|
@garyrussell

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the javadocs

* @deprecated in favor of
* {@link #handleOne(Exception, ConsumerRecord, Consumer, MessageListenerContainer)}.

I will fix the docs to reflect that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants