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

java.lang.Object
  extended by com.hazelcast.cache.impl.eviction.impl.strategy.AbstractEvictionStrategy<A,E,S>
      extended by 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.


Constructor Summary
SamplingBasedEvictionStrategy()
           
 
Method Summary
protected  int evictInternal(S sampleableEvictableStore, EvictionPolicyEvaluator<A,E> evictionPolicyEvaluator)
          Processes sampling based eviction logic on SampleableEvictableStore.
 
Methods inherited from class com.hazelcast.cache.impl.eviction.impl.strategy.AbstractEvictionStrategy
evict
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamplingBasedEvictionStrategy

public SamplingBasedEvictionStrategy()
Method Detail

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 entries
evictionPolicyEvaluator - EvictionPolicyEvaluator to evaluate
Returns:
evicted entry count


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