Skip to content

Commit c9b74e1

Browse files
committed
GH-2286: Doc Fixes
Resolves #2286 Remove `ackOnError` and fix error handler type.
1 parent 93f5ae5 commit c9b74e1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

spring-kafka-docs/src/main/asciidoc/kafka.adoc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,10 +2437,6 @@ When creating the `TopicPartitionOffset` s for the request, only positive, absol
24372437
|BATCH
24382438
|Controls how often offsets are committed - see <<committing-offsets>>.
24392439

2440-
|[[ackOnError]]<<ackOnError,`ackOnError`>>
2441-
|`false`
2442-
|[DEPRECATED in favor of `ErrorHandler.isAckAfterHandle()`]
2443-
24442440
|[[ackTime]]<<ackTime,`ackTime`>>
24452441
|5000
24462442
|The time in milliseconds after which pending offsets are committed when the `ackMode` is `TIME` or `COUNT_TIME`.
@@ -5137,7 +5133,6 @@ For example, with the `@KafkaListener` container factory, you can add `DefaultEr
51375133
public ConcurrentKafkaListenerContainerFactory<String, String> kafkaListenerContainerFactory() {
51385134
ConcurrentKafkaListenerContainerFactory<String, String> factory = new ConcurrentKafkaListenerContainerFactory();
51395135
factory.setConsumerFactory(consumerFactory());
5140-
factory.getContainerProperties().setAckOnError(false);
51415136
factory.getContainerProperties().setAckMode(AckMode.RECORD);
51425137
factory.setCommonErrorHandler(new DefaultErrorHandler(new FixedBackOff(1000L, 2L)));
51435138
return factory;
@@ -5624,7 +5619,7 @@ DeadLetterPublishingRecoverer recoverer = new DeadLetterPublishingRecoverer(temp
56245619
return new TopicPartition(r.topic() + ".other.failures", r.partition());
56255620
}
56265621
});
5627-
ErrorHandler errorHandler = new DefaultErrorHandler(recoverer, new FixedBackOff(0L, 2L));
5622+
CommonErrorHandler errorHandler = new DefaultErrorHandler(recoverer, new FixedBackOff(0L, 2L));
56285623
----
56295624
====
56305625

0 commit comments

Comments
 (0)