[ 
https://issues.apache.org/jira/browse/CAMEL-18647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen reassigned CAMEL-18647:
-----------------------------------

    Assignee: Claus Ibsen

> 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
>            Assignee: Claus Ibsen
>            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)

Reply via email to