You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Raymond (Jira)" <ji...@apache.org> on 2022/10/25 06:49:00 UTC
[jira] [Updated] (CAMEL-18647) Set delay options in route delay
[ https://issues.apache.org/jira/browse/CAMEL-18647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raymond updated CAMEL-18647:
----------------------------
Description:
In the current Java DSL you can set the delay EIP as follows:
{code:java}
routeTemplate("xmltojson-action")
.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("xmltojson-action")
.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]
was:
In the current Java DSL you can set the delay as follows:
{code:java}
routeTemplate("xmltojson-action")
.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("xmltojson-action")
.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}
> Set delay options in route delay
> --------------------------------
>
> 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("xmltojson-action")
> .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("xmltojson-action")
> .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)