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:31 UTC
[camel-kamelets] 02/08: Add delay parameter to all SQL Source Kamelets - PostgreSQL
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 92868cb6d03c418531dd1c812e3d0a561eff47be
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Nov 17 08:24:14 2022 +0100
Add delay parameter to all SQL Source Kamelets - PostgreSQL
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../src/main/resources/kamelets/postgresql-source.kamelet.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/postgresql-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/postgresql-source.kamelet.yaml
index 0a0ecfb3..32a43cf5 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/postgresql-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/postgresql-source.kamelet.yaml
@@ -77,6 +77,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
@@ -104,6 +109,7 @@ spec:
parameters:
dataSource: "#bean:{{dsBean}}"
onConsume: "{{?consumedQuery}}"
+ delay: "{{delay}}"
steps:
- marshal:
json: