Hazelcast C++ Client
 All Classes Functions Variables Enumerations Enumerator Pages
Public Member Functions | Static Public Attributes | List of all members
hazelcast::client::internal::eviction::EvictionPolicyComparator< K, V > Class Template Reference

A kind of java.util.Comparator to be used while comparing entries to be evicted. More...

#include <EvictionPolicyComparator.h>

+ Inheritance diagram for hazelcast::client::internal::eviction::EvictionPolicyComparator< K, V >:

Public Member Functions

virtual int compare (const EvictableEntryView< K, V > *e1, const EvictableEntryView< K, V > *e2) const
 Compares the given EvictableEntryView instances and returns the result. More...
 

Static Public Attributes

static const int FIRST_ENTRY_HAS_HIGHER_PRIORITY_TO_BE_EVICTED = -1
 Integer constant for representing behaviour for giving higher priority to first entry to be evicted.
 
static const int SECOND_ENTRY_HAS_HIGHER_PRIORITY_TO_BE_EVICTED = +1
 Integer constant for representing behaviour for giving higher priority to second entry to be evicted.
 
static const int BOTH_OF_ENTRIES_HAVE_SAME_PRIORITY_TO_BE_EVICTED = 0
 Integer constant for representing behaviour for giving same priority to both of entry to be evicted.
 

Detailed Description

template<typename K, typename V>
class hazelcast::client::internal::eviction::EvictionPolicyComparator< K, V >

A kind of java.util.Comparator to be used while comparing entries to be evicted.

Member Function Documentation

template<typename K , typename V >
virtual int hazelcast::client::internal::eviction::EvictionPolicyComparator< K, V >::compare ( const EvictableEntryView< K, V > *  e1,
const EvictableEntryView< K, V > *  e2 
) const
inlinevirtual

Compares the given EvictableEntryView instances and returns the result.

The result should be one of the

Parameters
e1the first EvictableEntryView instance to be compared
e2the second EvictableEntryView instance to be compared
Returns
the result of comparison

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