private void recomputeNumBuckets(){
  Calendar calendar=Calendar.getInstance();
  long now=calendar.getTimeInMillis();
  startOfBucketsInMillis=now - spanTimeInMillis;
  expiryTimeInMillis=startOfBucketsInMillis;
  endOBucketsInMillis=now;
  noOfBuckets=(int)Math.ceil((now - startOfBucketsInMillis) / (bucketSpanInMillis * 1.0));
  buckets=(Bucket<T>[])Array.newInstance(Bucket.class,noOfBuckets);
}

private void recomputeNumBuckets ( ) { Calendar calendar = Calendar . getInstance ( ) ; long now = calendar . getTimeInMillis ( ) ; startOfBucketsInMillis = now - spanTimeInMillis ; expiryTimeInMillis = startOfBucketsInMillis ; endOBucketsInMillis = now ; noOfBuckets = ( int ) Math . ceil ( ( now - startOfBucketsInMillis ) / ( bucketSpanInMillis * 1.0 ) ) ; buckets = ( Bucket < T > [ ] ) Array . newInstance ( Bucket . class , noOfBuckets ) ; }
compute the number of buckets based on spantime and bucketspaninmillis
