Skip to content

Commit f32a1b8

Browse files
Eduardo Pintogaryrussell
authored andcommitted
GH-840: Fix typos in documentation of Filtering Messages and Retrying Deliveries
Fixes GH-840 (#840) * remove reference to FilteringAcknowledgingMessageListenerAdapter * remove reference to RetryingAcknowledgingMessageListenerAdapter
1 parent a7c453b commit f32a1b8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/reference/asciidoc/kafka.adoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,10 +1200,8 @@ http://docs.spring.io/spring-integration/reference/html/messaging-endpoints-chap
12001200
The Spring for Apache Kafka project also provides some assistance by means of the `FilteringMessageListenerAdapter`
12011201
class, which can wrap your `MessageListener`.
12021202
This class takes an implementation of `RecordFilterStrategy` where you implement the `filter` method to signal
1203-
that a message is a duplicate and should be discarded.
1204-
1205-
A `FilteringAcknowledgingMessageListenerAdapter` is also provided for wrapping an `AcknowledgingMessageListener`.
1206-
This has an additional property `ackDiscarded` which indicates whether the adapter should acknowledge the discarded record; it is `true` by default.
1203+
that a message is a duplicate and should be discarded. This has an additional property `ackDiscarded` which indicates
1204+
whether the adapter should acknowledge the discarded record; it is `false` by default.
12071205

12081206
When using `@KafkaListener`, set the `RecordFilterStrategy` (and optionally `ackDiscarded`) on the container factory and the listener will be wrapped in the appropriate filtering adapter.
12091207

@@ -1228,7 +1226,7 @@ When using `@KafkaListener`, set the `RetryTemplate` (and optionally `recoveryCa
12281226
The contents of the `RetryContext` passed into the `RecoveryCallback` will depend on the type of listener.
12291227
The context will always have an attribute `record` which is the record for which the failure occurred.
12301228
If your listener is acknowledging and/or consumer aware, additional attributes `acknowledgment` and/or `consumer` will be available.
1231-
For convenience, the `RetryingAcknowledgingMessageListenerAdapter` provides static constants for these keys.
1229+
For convenience, the `RetryingMessageListenerAdapter` provides static constants for these keys.
12321230
See its javadocs for more information.
12331231

12341232
A retry adapter is not provided for any of the batch <<message-listeners, message listeners>> because the framework has no knowledge of where, in a batch, the failure occurred.

0 commit comments

Comments
 (0)