16 #ifndef HAZELCAST_CLIENT_INTERNAL_EVICTION_EVICTIONPOLICYEVALUATOR_H_
17 #define HAZELCAST_CLIENT_INTERNAL_EVICTION_EVICTIONPOLICYEVALUATOR_H_
21 #include <boost/shared_ptr.hpp>
23 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
25 #pragma warning(disable: 4251) //for dll export
32 template<
typename K,
typename V>
33 class EvictionPolicyComparator;
35 template <
typename MAPKEY,
typename MAPVALUE,
typename A,
typename E>
36 class EvictionCandidate;
45 template<
typename MAPKEY,
typename MAPVALUE,
typename A,
typename E>
58 return boost::shared_ptr<EvictionPolicyComparator<MAPKEY, MAPVALUE> >();
71 virtual std::auto_ptr<std::vector<boost::shared_ptr<eviction::EvictionCandidate<MAPKEY, MAPVALUE, A, E> > > >
evaluate(
74 return std::auto_ptr<std::vector<boost::shared_ptr<eviction::EvictionCandidate<MAPKEY, MAPVALUE, A, E> > > >();
82 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Interface for evaluation implementations of com.hazelcast.config.EvictionPolicy.
Definition: EvictionPolicyEvaluator.h:46
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 ...
Definition: EvictionPolicyEvaluator.h:71
Interface for entries, records or whatever that can be evictable via its accessor (key or id)...
Definition: EvictableStore.h:33
virtual const boost::shared_ptr< EvictionPolicyComparator< MAPKEY, MAPVALUE > > getEvictionPolicyComparator() const
Gets the underlying EvictionPolicyComparator.
Definition: EvictionPolicyEvaluator.h:56
Definition: MapEntryView.h:32