You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/06/25 11:07:34 UTC
[camel-kamelets] 03/03: MongoDB Source Kamelet: Added
persistentTailTracking support
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch mongodb-source-improvement
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 6c3811e9af266a070cbb70462cb79ebb33e8c83e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jun 25 13:06:53 2021 +0200
MongoDB Source Kamelet: Added persistentTailTracking support
---
docs/modules/ROOT/pages/mongodb-source.adoc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/docs/modules/ROOT/pages/mongodb-source.adoc b/docs/modules/ROOT/pages/mongodb-source.adoc
index a49b9a1..358ecf5 100644
--- a/docs/modules/ROOT/pages/mongodb-source.adoc
+++ b/docs/modules/ROOT/pages/mongodb-source.adoc
@@ -5,7 +5,11 @@
*Support Level for this Kamelet is: "Preview"*
-Consume documents from MongoDB
+Consume documents from MongoDB.
+
+If the persistentTailTracking option will be enabled, the consumer will keep track of the last consumed message and on the next restart, the consumption will restart from that message. In case of persistentTailTracking enabled, the tailTrackIncreasingField must be provided (by default it is optional).
+
+If the persistentTailTracking option won't be enabled, the consumer will consume the whole collection and wait in idle for new documents to consume.
== Configuration Options
@@ -18,6 +22,8 @@ The following table summarizes the configuration options available for the `mong
| *hosts {empty}* *| MongoDB Hosts| Comma separated list of MongoDB Host Addresses in host:port format.| string| |
| *password {empty}* *| MongoDB Password| User password for accessing MongoDB.| string| |
| *username {empty}* *| MongoDB Username| Username for accessing MongoDB.| string| |
+| persistentTailTracking| MongoDB Persistent Tail Tracking| Enable persistent tail tracking, which is a mechanism to keep track of the last consumed message across system restarts. The next time the system is up, the endpoint will recover the cursor from the point where it last stopped slurping records.| boolean| `false`|
+| tailTrackIncreasingField| MongoDB Tail Track Increasing Field| Correlation field in the incoming record which is of increasing nature and will be used to position the tailing cursor every time it is generated.| string| |
|===
NOTE: Fields marked with ({empty}*) are mandatory.