Hazelcast C++ Client
|
A kind of java.util.Comparator to be used while comparing entries to be evicted. More...
#include <EvictionPolicyComparator.h>
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. | |
A kind of java.util.Comparator to be used while comparing entries to be evicted.
|
inlinevirtual |
Compares the given EvictableEntryView instances and returns the result.
The result should be one of the
e1 | the first EvictableEntryView instance to be compared |
e2 | the second EvictableEntryView instance to be compared |