From 03479eb85182063049130bfbc4d0e6b0b72cde96 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 10 Mar 2016 16:17:01 -0500 Subject: [PATCH] GH-31: Document ProducerListener (cherry picked from commit 67779a7) --- src/reference/asciidoc/kafka.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/reference/asciidoc/kafka.adoc b/src/reference/asciidoc/kafka.adoc index ce287d80..73b61b45 100644 --- a/src/reference/asciidoc/kafka.adoc +++ b/src/reference/asciidoc/kafka.adoc @@ -76,6 +76,9 @@ The template can also be configured using standard `` definitions. Then, to use the template, simply invoke one of its methods. +Optionally, you can configure the `KafkaTemplate` with a `ProducerListener` to get an async callback with the +results of the send (success or failure) instead of waiting for the `Future` to complete. + ==== Receiving Messages Messages can be received by configuring a `MessageListenerContainer` and providing a `MessageListener`, or by