You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/asciidoc/kafka.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3352,7 +3352,7 @@ Received test
3352
3352
3353
3353
Version 2.1.3 added `pause()` and `resume()` methods to listener containers.
3354
3354
Previously, you could pause a consumer within a `ConsumerAwareMessageListener` and resume it by listening for a `ListenerContainerIdleEvent`, which provides access to the `Consumer` object.
3355
-
While you could pause a consumer in an idle container byi using an event listener, in some cases, this was not thread-safe, since there is no guarantee that the event listener is invoked on the consumer thread.
3355
+
While you could pause a consumer in an idle container by using an event listener, in some cases, this was not thread-safe, since there is no guarantee that the event listener is invoked on the consumer thread.
3356
3356
To safely pause and resume consumers, you should use the `pause` and `resume` methods on the listener containers.
3357
3357
A `pause()` takes effect just before the next `poll()`; a `resume()` takes effect just after the current `poll()` returns.
3358
3358
When a container is paused, it continues to `poll()` the consumer, avoiding a rebalance if group management is being used, but it does not retrieve any records.
@@ -3640,7 +3640,7 @@ DefaultKafkaConsumerFactory<Integer, Cat1> cf = new DefaultKafkaConsumerFactory<
3640
3640
3641
3641
Starting with version 2.5, you can now configure the deserializer, via properties, to invoke a method to determine the target type.
3642
3642
If present, this will override any of the other techniques discussed above.
3643
-
This can be useful if the data is published by an application that does not use the Spring serializer and you need to deserializer to different types depending on the data, or other headers.
3643
+
This can be useful if the data is published by an application that does not use the Spring serializer and you need to deserialize to different types depending on the data, or other headers.
3644
3644
Set these properties to the method name - a fully qualified class name followed by the method name, separated by a period `.`.
3645
3645
The method must be declared as `public static`, have one of two signatures `(byte[] data, Headers headers)` or `(byte[] data)` and return a Jackson `JavaType`.
0 commit comments