Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9186

Camel-Scala: Ability to add route policy in the Scala DSL based route definition

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.15.3
    • Fix Version/s: 2.17.0
    • Component/s: camel-scala
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Flags:
      Patch

      Description

      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

      routepolicysample.scala
      val rpolicy = new CronScheduledRoutePolicy
      rpolicy.setRouteStartTime("0 30 * * *")
      from("quartz2://mytest/test?cron=0+0/2+*+*+*+?")
      .routePolicy(rpolicy).noAutoStart()
      .to("log:foo")
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              nkhalasi Naresh Khalasi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified