public class SamplingBasedEvictionStrategy<A,E extends Evictable,S extends SampleableEvictableStore<A,E>> extends AbstractEvictionStrategy<A,E,S>
EvictionStrategy
implementation.
This strategy select sample Evictable
entries from SampleableEvictableStore
.Constructor and Description |
---|
SamplingBasedEvictionStrategy() |
Modifier and Type | Method and Description |
---|---|
protected int |
evictInternal(S sampleableEvictableStore,
EvictionPolicyEvaluator<A,E> evictionPolicyEvaluator,
EvictionListener<A,E> evictionListener)
Processes sampling based eviction logic on
SampleableEvictableStore . |
evict
protected int evictInternal(S sampleableEvictableStore, EvictionPolicyEvaluator<A,E> evictionPolicyEvaluator, EvictionListener<A,E> evictionListener)
SampleableEvictableStore
.evictInternal
in class AbstractEvictionStrategy<A,E extends Evictable,S extends SampleableEvictableStore<A,E>>
sampleableEvictableStore
- SampleableEvictableStore
that holds Evictable
entriesevictionPolicyEvaluator
- EvictionPolicyEvaluator
to evaluateevictionListener
- EvictionListener
to listen evicted entriesCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.