Skip to content

Commit 7f793f4

Browse files
xoronetgaryrussell
authored andcommitted
Corrects two typos
corrects two small typos in the documentation.
1 parent 4da47f5 commit 7f793f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reference/asciidoc/kafka.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,7 @@ Received test
26092609

26102610
Version 2.1.3 added `pause()` and `resume()` methods to listener containers.
26112611
Previously, you could pause a consumer within a `ConsumerAwareMessageListener` and resume it by listening for a `ListenerContainerIdleEvent`, which provides access to the `Consumer` object.
2612-
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.
2612+
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.
26132613
To safely pause and resume consumers, you should use the `pause` and `resume` methods on the listener containers.
26142614
A `pause()` takes effect just before the next `poll()`; a `resume()` takes effect just after the current `poll()` returns.
26152615
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.

0 commit comments

Comments
 (0)