public class RandomEvictionPolicy extends MapEvictionPolicy
IMap| Modifier and Type | Field and Description | 
|---|---|
| static RandomEvictionPolicy | INSTANCERandom eviction policy instance. | 
| Constructor and Description | 
|---|
| RandomEvictionPolicy() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compare(EntryView entryView1,
       EntryView entryView2) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic static final RandomEvictionPolicy INSTANCE
public int compare(EntryView entryView1, EntryView entryView2)
MapEvictionPolicyIf you prefer to evict the 1st entry then return positive number, if the 2nd entry is a better candidate then return a negative number or return 0 if both entries are equally good candidates for eviction
compare in class MapEvictionPolicyCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.