Interface for evaluation implementations of com.hazelcast.config.EvictionPolicy. More...
#include <EvictionPolicyEvaluator.h>
Public Member Functions | |
virtual const boost::shared_ptr < EvictionPolicyComparator < MAPKEY, MAPVALUE > > | getEvictionPolicyComparator () const |
Gets the underlying EvictionPolicyComparator. More... | |
virtual std::auto_ptr < std::vector < boost::shared_ptr < eviction::EvictionCandidate < MAPKEY, MAPVALUE, A, E > > > > | evaluate (util::Iterable< EvictionCandidate< MAPKEY, MAPVALUE, A, E > > &evictionCandidates) const |
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. More... | |
Interface for evaluation implementations of com.hazelcast.config.EvictionPolicy.
<A> | Type of the accessor (id) of the com.hazelcast.internal.eviction.EvictionCandidate |
<E> | Type of the com.hazelcast.internal.eviction.Evictable value of com.hazelcast.internal.eviction.EvictionCandidate |
|
inlinevirtual |
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.
evictionCandidates | Multiple EvictionCandidate to be evicted |
|
inlinevirtual |
Gets the underlying EvictionPolicyComparator.