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)

Reply via email to