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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.10.4
    • Fix Version/s: 2.10.5, 2.11.1, 2.12.0
    • Component/s: camel-core
    • Labels:
      None
    • Environment:

      any

    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: