public interface EvictionStrategy<A,E extends Evictable,S extends EvictableStore<A,E>>
EvictableStore
implementations as specified
EvictionPolicyEvaluator
.Modifier and Type | Method and Description |
---|---|
int |
evict(S evictableStore,
EvictionPolicyEvaluator<A,E> evictionPolicyEvaluator,
EvictionChecker evictionChecker)
Does eviction if eviction is required by given
EvictionChecker . |
int evict(S evictableStore, EvictionPolicyEvaluator<A,E> evictionPolicyEvaluator, EvictionChecker evictionChecker)
EvictionChecker
.evictableStore
- Store that holds Evictable
entriesevictionPolicyEvaluator
- EvictionPolicyEvaluator
to evaluate
EvictionPolicy
on entriesevictionChecker
- EvictionChecker
to make a decision about if eviction is
required or not. If you want evict anyway,
you can use EvictionChecker.EVICT_ALWAYS
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.