A
- Type of the accessor (id) of the EvictionCandidate
E
- Type of the Evictable
value of
EvictionCandidate
public class EvictionPolicyEvaluator<A,E extends Evictable> extends Object
EvictionPolicyEvaluator
implementation.Constructor and Description |
---|
EvictionPolicyEvaluator(EvictionPolicyComparator evictionPolicyComparator) |
Modifier and Type | Method and Description |
---|---|
<C extends EvictionCandidate<A,E>> |
evaluate(Iterable<C> evictionCandidates)
Selects the best candidate to be evicted.
|
EvictionPolicyComparator |
getEvictionPolicyComparator() |
public EvictionPolicyEvaluator(EvictionPolicyComparator evictionPolicyComparator)
public EvictionPolicyComparator getEvictionPolicyComparator()
public <C extends EvictionCandidate<A,E>> C evaluate(Iterable<C> evictionCandidates)
null
when there the input is empty.evictionCandidates
- Multiple EvictionCandidate
to be evictedCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.