Github user sjcorbett commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/40#discussion_r14459057
  
    --- Diff: 
core/src/main/java/brooklyn/management/ha/HighAvailabilityManagerImpl.java ---
    @@ -273,8 +273,15 @@ protected void registerPollTask() {
                 }
             };
             
    -        ScheduledTask task = new ScheduledTask(MutableMap.of("period", 
pollPeriod), taskFactory);
    -        pollingTask = managementContext.getExecutionManager().submit(task);
    +        if (pollPeriod==null || 
pollPeriod.equals(Duration.PRACTICALLY_FOREVER)) {
    --- End diff --
    
    Could be worth adding Javadoc to setPollPeriod to explain that setting null 
or forever means that no polling will take place.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to