camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Wolf (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-6308) ScheduledPollConsumer.startScheduler() access type should be "public", not "protected"
Date Tue, 23 Apr 2013 23:37:21 GMT
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

Mime
View raw message