You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Naresh Khalasi (JIRA)" <ji...@apache.org> on 2015/10/01 18:24:26 UTC

[jira] [Updated] (CAMEL-9186) Camel-Scala: Ability to add route policy in the Scala DSL based route definition

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

Naresh Khalasi updated CAMEL-9186:
----------------------------------
    Attachment: CAMEL-9186-patch.txt

Patch for introducing routePolicy capability in the scala dsl

> Camel-Scala: Ability to add route policy in the Scala DSL based route definition 
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-9186
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9186
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-scala
>    Affects Versions: 2.15.3
>            Reporter: Naresh Khalasi
>            Priority: Minor
>         Attachments: CAMEL-9186-patch.txt
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> As a developer wanting to use *quartz2* scheduler and wanting to use {{CronScheduledRoutePolicy}} to be able to configure the route start time, suspend time and resume time, I would like to do the following
> {code:title=routepolicysample.scala}
> val rpolicy = new CronScheduledRoutePolicy
> rpolicy.setRouteStartTime("0 30 * * *")
> from("quartz2://mytest/test?cron=0+0/2+*+*+*+?")
> .routePolicy(rpolicy).noAutoStart()
> .to("log:foo")
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)