Hazelcast C++ Client
 All Classes Functions Variables Enumerations Enumerator Pages
Public Member Functions | List of all members
hazelcast::client::internal::eviction::EvictionStrategy< MAPKEY, MAPVALUE, A, E, S > Class Template Reference

Interface for eviction implementations to evict EvictableStore implementations as specified EvictionPolicyEvaluator. More...

#include <EvictionStrategy.h>

Public Member Functions

virtual int evict (S *evictableStore, EvictionPolicyEvaluator< MAPKEY, MAPVALUE, A, E > *evictionPolicyEvaluator, EvictionChecker *evictionChecker, EvictionListener< A, E > *evictionListener)
 Does eviction if eviction is required by given EvictionChecker. More...
 

Detailed Description

template<typename MAPKEY, typename MAPVALUE, typename A, typename E, typename S>
class hazelcast::client::internal::eviction::EvictionStrategy< MAPKEY, MAPVALUE, A, E, S >

Interface for eviction implementations to evict EvictableStore implementations as specified EvictionPolicyEvaluator.

Parameters
<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
<S>Type of the com.hazelcast.internal.eviction.EvictableStore

Member Function Documentation

template<typename MAPKEY , typename MAPVALUE , typename A , typename E , typename S >
virtual int hazelcast::client::internal::eviction::EvictionStrategy< MAPKEY, MAPVALUE, A, E, S >::evict ( S *  evictableStore,
EvictionPolicyEvaluator< MAPKEY, MAPVALUE, A, E > *  evictionPolicyEvaluator,
EvictionChecker evictionChecker,
EvictionListener< A, E > *  evictionListener 
)
inlinevirtual

Does eviction if eviction is required by given EvictionChecker.

Parameters
evictableStoreStore that holds Evictable entries
evictionPolicyEvaluatorEvictionPolicyEvaluator to evaluate com.hazelcast.config.EvictionPolicy on entries
evictionCheckerEvictionChecker to make a decision about if eviction is required or not. If you want evict anyway, you can use EvictionChecker#EVICT_ALWAYS
evictionListenerEvictionListener to listen evicted entries
Returns
evicted entry count

The documentation for this class was generated from the following file: