public final class EvictionHelper extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkEvictable(MapContainer mapContainer,
int partitionId) |
static int |
evictableSize(int currentPartitionSize,
MapConfig mapConfig,
MapServiceContext mapServiceContext) |
static boolean |
evictIfNotLocked(Data key,
RecordStore recordStore,
boolean backup) |
static void |
fireEvent(Data key,
Object value,
String mapName,
MapServiceContext mapServiceContext) |
static void |
removeEvictableRecords(RecordStore recordStore,
int evictableSize,
MapConfig mapConfig,
MapServiceContext mapServiceContext,
boolean backup) |
public static boolean checkEvictable(MapContainer mapContainer, int partitionId)
public static void removeEvictableRecords(RecordStore recordStore, int evictableSize, MapConfig mapConfig, MapServiceContext mapServiceContext, boolean backup)
public static void fireEvent(Data key, Object value, String mapName, MapServiceContext mapServiceContext)
public static boolean evictIfNotLocked(Data key, RecordStore recordStore, boolean backup)
public static int evictableSize(int currentPartitionSize, MapConfig mapConfig, MapServiceContext mapServiceContext)
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.