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

ScheduledPollConsumer.startScheduler() access type should be "public", not "protected"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.10.4
    • 2.10.5, 2.11.1, 2.12.0
    • camel-core
    • None
    • any

    • Unknown

    Description

      There are frequent requirements (as I read from the mail list) to be able to alter the polling behavior of Consumers based on ScheduledPollConsumer, for example when polling should start and stop. To customize when polling should start, the Endpoint can be configured with "startScheduler=false", but then how can we programatically start it without using reflection to override the "protected" access of startScheduler()? It seems to me that if the option, "startScheduler=false" is implemented, then the complimentary API, ScheduledPollConsumer.startScheduler() should be "public".

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            cw10025@gmail.com Chris Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: