com.hazelcast.cache.impl.eviction
Interface EvictionPolicyEvaluator<A,E extends Evictable>

All Known Implementing Classes:
AbstractEvictionPolicyEvaluator, LFUEvictionPolicyEvaluator, LRUEvictionPolicyEvaluator

public interface EvictionPolicyEvaluator<A,E extends Evictable>

Interface for evaluation implementations of EvictionPolicy.


Method Summary
<C extends EvictionCandidate<A,E>>
Iterable<C>
evaluate(Iterable<C> evictionCandidates)
          The evaluate method implements the actual policy rules and is called on every eviction to select one or more candidates to be evicted from the given input set of candidates.
 

Method Detail

evaluate

<C extends EvictionCandidate<A,E>> Iterable<C> evaluate(Iterable<C> evictionCandidates)
The evaluate method implements the actual policy rules and is called on every eviction to select one or more candidates to be evicted from the given input set of candidates. The selection algorithm should execute in a constant time to deliver a predictable timing results of the eviction system.

Parameters:
evictionCandidates - Multiple EvictionCandidate to be evicted
Returns:
multiple EvictionCandidate these are available to be evicted


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