brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grkvlt <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request #833: Fix PeriodicEffectorPolicy
Date Wed, 20 Sep 2017 10:51:44 GMT
Github user grkvlt commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/833#discussion_r139935372
  
    --- Diff: policy/src/main/java/org/apache/brooklyn/policy/action/ScheduledEffectorPolicy.java
---
    @@ -59,8 +60,8 @@ public ScheduledEffectorPolicy() {
         public void setEntity(final EntityLocal entity) {
             super.setEntity(entity);
     
    -        subscriptions().subscribe(entity, INVOKE_IMMEDIATELY, this);
    -        subscriptions().subscribe(entity, INVOKE_AT, this);
    +        subscriptions().subscribe(ImmutableMap.of("notifyOfInitialValue", true), entity,
INVOKE_IMMEDIATELY, this);
    --- End diff --
    
    This makes sense, good idea


---

Mime
View raw message