code: public BucketsSample sample() {
  		synchronized (buckets) {
  			BucketSample[] bucketSamples = new BucketSample[buckets.length];
  			for (int i = 0; i < buckets.length; i++) {
  				bucketSamples[i] = buckets[i].sample();
  			}
  			Double[] quantiles = getQuantiles(0.50D, 0.90D);
  			return new BucketsSample(bucketSamples, quantiles[0], quantiles[1]);
  		}
  	}
docs: Sample buckets and quantiles state.