public void maintain() { Bucket[] buckets = getBucketsCopy(); for (Bucket bucket : buckets) { bucket.maintain(); } updateStatistics(buckets); }