You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Chris Wolf (JIRA)" <ji...@apache.org> on 2013/04/24 01:37:21 UTC

[jira] [Created] (CAMEL-6308) ScheduledPollConsumer.startScheduler() access type should be "public", not "protected"

Chris Wolf created CAMEL-6308:
---------------------------------

             Summary: ScheduledPollConsumer.startScheduler() access type should be "public", not "protected"
                 Key: CAMEL-6308
                 URL: https://issues.apache.org/jira/browse/CAMEL-6308
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.10.4
         Environment: any
            Reporter: Chris Wolf
            Priority: Critical


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". 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira