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 9c8794e44dffbded7831b9d99d8a58266a5f3872
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Nov 17 08:27:12 2022 +0100

    Add delay parameter to all SQL Source Kamelets - MySQL
    
    Signed-off-by: Andrea Cosentino <anco...@gmail.com>
---
 .../src/main/resources/kamelets/mysql-source.kamelet.yaml           | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml 
b/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml
index 38ae947a..8afab6c0 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/mysql-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:
     out:
       mediaType: application/json
@@ -107,6 +112,7 @@ spec:
       parameters:
         dataSource: "#bean:{{dsBean}}"
         onConsume: "{{?consumedQuery}}"
+        delay: "{{delay}}"
       steps:
       - marshal:
           json: 

Reply via email to