Repository: camel Updated Branches: refs/heads/master f42c97e17 -> b259c00cf
CAMEL-10944: camel-kafka - When consumer stop it should auto commit Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/b259c00c Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/b259c00c Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/b259c00c Branch: refs/heads/master Commit: b259c00cf2601cefc3f567d4e73d32ec39aaf90e Parents: f42c97e Author: Claus Ibsen <davscl...@apache.org> Authored: Sun Mar 5 18:52:45 2017 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sun Mar 5 18:52:45 2017 +0100 ---------------------------------------------------------------------- components/camel-kafka/src/main/docs/kafka-component.adoc | 2 +- .../java/org/apache/camel/component/kafka/KafkaConfiguration.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/b259c00c/components/camel-kafka/src/main/docs/kafka-component.adoc ---------------------------------------------------------------------- diff --git a/components/camel-kafka/src/main/docs/kafka-component.adoc b/components/camel-kafka/src/main/docs/kafka-component.adoc index f9f5aa5..8b376b0 100644 --- a/components/camel-kafka/src/main/docs/kafka-component.adoc +++ b/components/camel-kafka/src/main/docs/kafka-component.adoc @@ -78,7 +78,7 @@ The Kafka component is configured using the URI syntax with the following path a | partitioner | common | org.apache.kafka.clients.producer.internals.DefaultPartitioner | String | The partitioner class for partitioning messages amongst sub-topics. The default partitioner is based on the hash of the key. | autoCommitEnable | consumer | true | Boolean | If true periodically commit to ZooKeeper the offset of messages already fetched by the consumer. This committed offset will be used when the process fails as the position from which the new consumer will begin. | autoCommitIntervalMs | consumer | 5000 | Integer | The frequency in ms that the consumer offsets are committed to zookeeper. -| autoCommitOnStop | consumer | sync | String | Whether to perform an explicit auto commit when the consumer stops to ensure the broker has a commit from the last consumed message. This requires the option autoCommitEnable is turned on. +| autoCommitOnStop | consumer | sync | String | Whether to perform an explicit auto commit when the consumer stops to ensure the broker has a commit from the last consumed message. This requires the option autoCommitEnable is turned on. The possible values are: sync async or none. And sync is the default value. | autoOffsetReset | consumer | latest | String | What to do when there is no initial offset in ZooKeeper or if an offset is out of range: smallest : automatically reset the offset to the smallest offset largest : automatically reset the offset to the largest offset fail: throw exception to the consumer | bridgeErrorHandler | consumer | false | boolean | Allows for bridging the consumer to the Camel routing Error Handler which mean any exceptions occurred while the consumer is trying to pickup incoming messages or the likes will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions that will be logged at WARN or ERROR level and ignored. | checkCrcs | consumer | true | Boolean | Automatically check the CRC32 of the records consumed. This ensures no on-the-wire or on-disk corruption to the messages occurred. This check adds some overhead so it may be disabled in cases seeking extreme performance. http://git-wip-us.apache.org/repos/asf/camel/blob/b259c00c/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java index e96614f..064c087 100644 --- a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java +++ b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConfiguration.java @@ -621,6 +621,7 @@ public class KafkaConfiguration { /** * Whether to perform an explicit auto commit when the consumer stops to ensure the broker * has a commit from the last consumed message. This requires the option autoCommitEnable is turned on. + * The possible values are: sync, async, or none. And sync is the default value. */ public void setAutoCommitOnStop(String autoCommitOnStop) { this.autoCommitOnStop = autoCommitOnStop;