Polish "Add support for Kafka batch listener"

This commit reworks the property to be an enum with the list of
supported listener types rather than a boolean that flip to a
batch listener.

Closes gh-9448
This commit is contained in:
Stephane Nicoll
2017-06-14 11:09:03 +02:00
parent 257f44357e
commit f05f1bcfba
5 changed files with 36 additions and 15 deletions

View File

@@ -986,7 +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.listener.type=single # Listener type.
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.