class HystrixRollingNumber {

    public long getValueOfLatestBucket(HystrixRollingNumberEvent type) {
        Bucket lastBucket = getCurrentBucket();
        if (lastBucket == null)
            return 0;
        // we have bucket data so we'll return the lastBucket
        return lastBucket.get(type);
    }

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

}