Skip to content

Commit c476ac6

Browse files
xoronetgaryrussell
authored andcommitted
Corrects two typos
corrects two small typos in the documentation.
1 parent 3fe295e commit c476ac6

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
@@ -2690,7 +2690,7 @@ Received test
26902690

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