Skip to content

Commit 423deb0

Browse files
xoronetgaryrussell
authored andcommitted
Corrects two typos
corrects two small typos in the documentation.
1 parent def2e87 commit 423deb0

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
@@ -1979,7 +1979,7 @@ If you change the multicaster to use an async executor, thread cleanup is not ef
19791979

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