You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/10/25 12:53:00 UTC
[jira] [Updated] (CAMEL-18647) Java DSL - Set delay options from route templates in Delay EIP
[ https://issues.apache.org/jira/browse/CAMEL-18647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-18647:
--------------------------------
Summary: Java DSL - Set delay options from route templates in Delay EIP (was: Set delay options in route delay)
> Java DSL - Set delay options from route templates in Delay EIP
> --------------------------------------------------------------
>
> Key: CAMEL-18647
> URL: https://issues.apache.org/jira/browse/CAMEL-18647
> Project: Camel
> Issue Type: New Feature
> Affects Versions: 3.19.0
> Reporter: Raymond
> Priority: Minor
>
> In the current Java DSL you can set the delay EIP as follows:
>
> {code:java}
> routeTemplate("delay")
> .templateParameter("in")
> .templateParameter("delayTimeout","5000")
> .templateParameter("out")
> .from("{{in}}")
> .delay().constant("{delayTimeout}}").syncDelayed().callerRunsWhenRejected(false)
> .to("{{out}}");
> {code}
>
> I would like to make the options configurable:
>
> {code:java}
> routeTemplate("delay")
> .templateParameter("in")
> .templateParameter("delayTimeout","5000")
> .templateParameter("asyncDelayed","true")
> .templateParameter("callerRunsWhenRejected","true")
> .templateParameter("out")
> .from("{{in}}")
> .delay().constant("{{delayTimeout}}")
> .asyncDelayed("{{asyncDelayed}}")
> .callerRunsWhenRejected("{{callerRunsWhenRejected}}")
> .to("{{out}}");
> {code}
>
> [https://camel.apache.org/components/3.18.x/eips/delay-eip.html]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)