numerus/src/main/java/com/netflix/numerus/NumerusRollingNumber.java
public long getRollingSum(NumerusRollingNumberEvent type, Boolean doNotBlock) {
        Bucket lastBucket = getCurrentBucket(doNotBlock);
        if (lastBucket == null)
            return 0;

        long sum = 0;
        for (Bucket b : buckets) {
            sum += b.getAdder(type).sum();
        }
        return sum;
    }
public long getRollingSum(NumerusRollingNumberEvent type, Boolean doNotBlock) {
        Bucket lastBucket = getCurrentBucket(doNotBlock);
        if (lastBucket == null)
            return 0;

        long sum = 0;
        for (Bucket b : buckets) {
            sum += b.getAdder(type).sum();
        }
        return sum;
    }
public long getRollingSum ( NumerusRollingNumberEvent type , Boolean doNotBlock ) { Bucket lastBucket = getCurrentBucket ( doNotBlock ) ; if ( lastBucket == null ) return 0 ; long sum = 0 ; for ( Bucket b : buckets ) { sum += b . getAdder ( type ) . sum ( ) ; } return sum ; }
Get the sum of all buckets in the rolling counter for the given {@link NumerusRollingNumberEvent} type.
<p>
The {@link NumerusRollingNumberEvent} must be a "counter" type <code>HystrixRollingNumberEvent.isCounter() == true</code>.

@param type
HystrixRollingNumberEvent defining which counter to retrieve values from
Boolean doNotBlock if currentBucket is null
@return
value from the given {@link NumerusRollingNumberEvent} counter type
Get the sum of all buckets in the rolling counter for the given { @link NumerusRollingNumberEvent } type . <p > The { @link NumerusRollingNumberEvent } must be a counter type <code > HystrixRollingNumberEvent . isCounter () == true< / code > .