/**
* Constructor that accepts a timer which will be used to schedule the
* sampled counters
*/
public SampledCacheStatisticsImpl(FailSafeTimer timer) {
counterManager = new CounterManagerImpl(timer);
cacheHitCount = createSampledCounter(DEFAULT_SAMPLED_COUNTER_CONFIG);
cacheHitInMemoryCount = createSampledCounter(DEFAULT_SAMPLED_COUNTER_CONFIG);
cacheHitOffHeapCount = createSampledCounter(DEFAULT_SAMPLED_COUNTER_CONFIG);
cacheHitOnDiskCount = createSampledCounter(DEFAULT_SAMPLED_COUNTER_CONFIG);
cacheMissCount = createSampledCounter(DEFAULT_SAMPLED_COUNTER_CONFIG);