class HystrixRollingNumber {

    public long getRollingSum(HystrixRollingNumberEvent type) {
        Bucket lastBucket = getCurrentBucket();
        if (lastBucket == null)
            return 0;

        long sum = 0;
        for (Bucket b : buckets) {
            sum += b.getAdder(type).sum();
        }
        return sum;
    }

    @Deprecated public  HystrixRollingNumber(HystrixProperty<Integer> timeInMilliseconds, HystrixProperty<Integer> numberOfBuckets);
    public  HystrixRollingNumber(int timeInMilliseconds, int numberOfBuckets);
      HystrixRollingNumber(Time time, int timeInMilliseconds, int numberOfBuckets);

}