com.hazelcast.cache.impl.eviction.impl.strategy.sampling
Class SamplingBasedEvictionStrategy<A,E extends Evictable,S extends SampleableEvictableStore<A,E>>
java.lang.Object
com.hazelcast.cache.impl.eviction.impl.strategy.AbstractEvictionStrategy<A,E,S>
com.hazelcast.cache.impl.eviction.impl.strategy.sampling.SamplingBasedEvictionStrategy<A,E,S>
- All Implemented Interfaces:
- EvictionStrategy<A,E,S>
public class SamplingBasedEvictionStrategy<A,E extends Evictable,S extends SampleableEvictableStore<A,E>>
- extends AbstractEvictionStrategy<A,E,S>
Sampling based EvictionStrategy
implementation.
This strategy select sample Evictable
entries from SampleableEvictableStore
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SamplingBasedEvictionStrategy
public SamplingBasedEvictionStrategy()
evictInternal
protected int evictInternal(S sampleableEvictableStore,
EvictionPolicyEvaluator<A,E> evictionPolicyEvaluator)
- Processes sampling based eviction logic on
SampleableEvictableStore
.
- Specified by:
evictInternal
in class AbstractEvictionStrategy<A,E extends Evictable,S extends SampleableEvictableStore<A,E>>
- Parameters:
sampleableEvictableStore
- SampleableEvictableStore
that holds Evictable
entriesevictionPolicyEvaluator
- EvictionPolicyEvaluator
to evaluate
- Returns:
- evicted entry count
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.