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:21:26 UTC

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

Naresh Khalasi created CAMEL-9186:
-------------------------------------

             Summary: 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


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)