public abstract class AbstractEvictionPolicyEvaluator<A,E extends Evictable> extends Object implements EvictionPolicyEvaluator<A,E>
EvictionPolicy
.Constructor and Description |
---|
AbstractEvictionPolicyEvaluator() |
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. |
protected abstract Evictable |
selectEvictableAsPolicy(Evictable current,
Evictable candidate)
Compares two evictable candidates and selects one as
EvictionPolicy rule. |
protected abstract Evictable selectEvictableAsPolicy(Evictable current, Evictable candidate)
EvictionPolicy
rule.current
- Currently selected evictable candidatecandidate
- Evictable candidate to compare with current onepublic <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 © 2016 Hazelcast, Inc.. All Rights Reserved.