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 2022/11/17 12:50:35 UTC
[camel-kamelets] 06/08: Add delay parameter to all SQL Source Kamelets - MariaDB
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch sql-sources
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 54f9c9290814b0399ca5826e8309ab11f29388f1
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Nov 17 08:28:17 2022 +0100
Add delay parameter to all SQL Source Kamelets - MariaDB
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../src/main/resources/kamelets/mariadb-source.kamelet.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
index 7a388129..b8298079 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/mariadb-source.kamelet.yaml
@@ -81,6 +81,11 @@ spec:
description: A query to run on a tuple consumed.
type: string
example: 'DELETE FROM accounts where user_id = :#user_id'
+ delay:
+ title: Delay
+ description: The number of milliseconds before the next poll
+ type: integer
+ default: 500
types:
in:
mediaType: application/json
@@ -107,6 +112,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
+ delay: "{{delay}}"
steps:
- marshal:
json: