Skip to content

Commit 6518166

Browse files
committed
GH-2195: Doc Polishing
Don't reference deprecated methods on `CommonErrorHandler`.
1 parent 73bee66 commit 6518166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: spring-kafka-docs/src/main/asciidoc/kafka.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -5481,10 +5481,10 @@ If you wish to use a different error handling strategy for record and batch list
54815481

54825482
Refer to the javadocs in `CommonErrorHandler`.
54835483

5484-
To replace an `ErrorHandler` or `ConsumerAwareErrorHandler` implementation, you should implement `handleRecord()` and leave `remainingRecords()` to return `false` (default).
5484+
To replace an `ErrorHandler` or `ConsumerAwareErrorHandler` implementation, you should implement `handleOne()` and leave `seeksAfterHandle()` to return `false` (default).
54855485
You should also implement `handleOtherException()` - to handle exceptions that occur outside the scope of record processing (e.g. consumer errors).
54865486

5487-
To replace a `RemainingRecordsErrorHandler` implementation, you should implement `handleRemaining()` and override `remainingRecords()` to return `true`.
5487+
To replace a `RemainingRecordsErrorHandler` implementation, you should implement `handleRemaining()` and override `seeksAfterHandle()` to return `true` (the error handler must perform the necessary seeks).
54885488
You should also implement `handleOtherException()` - to handle exceptions that occur outside the scope of record processing (e.g. consumer errors).
54895489

54905490
To replace any `BatchErrorHandler` implementation, you should implement `handleBatch()`

0 commit comments

Comments
 (0)