You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by GitBox <gi...@apache.org> on 2019/05/31 13:10:37 UTC

[GitHub] [sling-org-apache-sling-distribution-journal] cschneider commented on a change in pull request #7: SLING-8447 - Add gauge for current retries per subscriber

cschneider commented on a change in pull request #7: SLING-8447 - Add gauge for current retries per subscriber
URL: https://github.com/apache/sling-org-apache-sling-distribution-journal/pull/7#discussion_r289382595
 
 

 ##########
 File path: src/main/java/org/apache/sling/distribution/journal/impl/queue/impl/PackageRetries.java
 ##########
 @@ -44,4 +44,7 @@ public int get(String pubAgentName) {
         return pubAgentNameToRetries.getOrDefault(pubAgentName, 0);
     }
 
+    public int getSum() {
+        return pubAgentNameToRetries.values().stream().mapToInt(Integer::new).sum();
 
 Review comment:
   Ok

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services