A
- Type of the accessor (id) of the EvictionCandidate
E
- Type of the Evictable
value of
EvictionCandidate
public class DefaultEvictionPolicyEvaluator<A,E extends Evictable> extends Object implements EvictionPolicyEvaluator<A,E>
EvictionPolicyEvaluator
implementation.Constructor and Description |
---|
DefaultEvictionPolicyEvaluator(EvictionPolicyComparator evictionPolicyComparator) |
Modifier and Type | Method and Description |
---|---|
<C extends EvictionCandidate<A,E>> |
evaluate(Iterable<C> evictionCandidates)
The evaluate method implements the
EvictionPolicy rule
on the given input set of candidates. |
EvictionPolicyComparator |
getEvictionPolicyComparator()
Gets the underlying
EvictionPolicyComparator . |
public DefaultEvictionPolicyEvaluator(EvictionPolicyComparator evictionPolicyComparator)
public EvictionPolicyComparator getEvictionPolicyComparator()
EvictionPolicyEvaluator
EvictionPolicyComparator
.getEvictionPolicyComparator
in interface EvictionPolicyEvaluator<A,E extends Evictable>
EvictionPolicyComparator
public <C extends EvictionCandidate<A,E>> Iterable<C> evaluate(Iterable<C> evictionCandidates)
EvictionPolicy
rule
on the given input set of candidates.evaluate
in interface EvictionPolicyEvaluator<A,E extends Evictable>
evictionCandidates
- Multiple EvictionCandidate
to be evictedEvictionCandidate
these are available to be evictedCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.