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

timer - Allow to specify a delay of -1 or something to indicate loop asap forever

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.17.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If you want to let a route trigger as fast as possible, then by settinh

      from timer:fast?delay=-1
      to http blah

      then with the timer we can detect its a delay < 0 and then instead of using a timer, then do a processor that's in a while loop and then keep routing

      while (isRunAllowed) {
         create exchange
         process exchange
      }
      

        Attachments

          Activity

            People

            • Assignee:
              ancosen Andrea Cosentino
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: