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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.15.3
    • 2.17.0
    • camel-scala
    • None
    • Patch Available
    • 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

        1. CAMEL-9186-patch.txt
          1 kB
          Naresh Khalasi

        Activity

          People

            davsclaus Claus Ibsen
            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