Add support for Kafka batch listener

This commit adds a `spring.kafka.listener.batch-listener` property so
that a batch listener is created automatically.

See gh-9448
This commit is contained in:
mzagar
2017-06-09 13:02:56 +02:00
committed by Stephane Nicoll
parent 4282e94c2c
commit 257f44357e
4 changed files with 17 additions and 0 deletions

View File

@@ -986,6 +986,7 @@ content into your application; rather pick only the properties that you need.
spring.kafka.listener.ack-time= # Time in milliseconds between offset commits when ackMode is "TIME" or "COUNT_TIME".
spring.kafka.listener.concurrency= # Number of threads to run in the listener containers.
spring.kafka.listener.poll-timeout= # Timeout in milliseconds to use when polling the consumer.
spring.kafka.listener.batch-listener= # If true listener container factory will be configured to create batch listener.
spring.kafka.producer.acks= # Number of acknowledgments the producer requires the leader to have received before considering a request complete.
spring.kafka.producer.batch-size= # Number of records to batch before sending.
spring.kafka.producer.bootstrap-servers= # Comma-delimited list of host:port pairs to use for establishing the initial connection to the Kafka cluster.