com.hazelcast.cache.impl.eviction.impl.strategy.sampling
Interface SampleableEvictableStore<A,E extends Evictable>

All Superinterfaces:
EvictableStore<A,E>
All Known Subinterfaces:
SampleableCacheRecordMap<K,V>
All Known Implementing Classes:
CacheRecordHashMap

public interface SampleableEvictableStore<A,E extends Evictable>
extends EvictableStore<A,E>

Interface for sampleable store implementations that holds Evictable entries to evict.


Method Summary
<C extends EvictionCandidate<A,E>>
Iterable<C>
sample(int sampleCount)
          The sample method is used to sample a number of entries (defined by the samples parameter) from the internal data structure.
 
Methods inherited from interface com.hazelcast.cache.impl.eviction.EvictableStore
evict
 

Method Detail

sample

<C extends EvictionCandidate<A,E>> Iterable<C> sample(int sampleCount)
The sample method is used to sample a number of entries (defined by the samples parameter) from the internal data structure. This method should be executed in a constant time to deliver predictable timing results of the eviction system.

Parameters:
sampleCount - Entry count to be sampled
Returns:
Multiple EvictionCandidate to be evicted


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.