com.hazelcast.map.impl.eviction
Class EvictionOperator

java.lang.Object
  extended by com.hazelcast.map.impl.eviction.EvictionOperator

public final class EvictionOperator
extends Object

Eviction helper methods.


Method Summary
static EvictionOperator create(MapServiceContext mapServiceContext)
           
static EvictionOperator create(MemoryInfoAccessor memoryInfoAccessor, MapServiceContext mapServiceContext)
           
 int evictableSize(int currentPartitionSize, MapConfig mapConfig)
           
 void fireEvent(Data key, Object value, String mapName, MapServiceContext mapServiceContext)
           
 MaxSizeChecker getMaxSizeChecker()
           
 void removeEvictableRecords(RecordStore recordStore, int evictableSize, MapConfig mapConfig, boolean backup)
           
 void setMapServiceContext(MapServiceContext mapServiceContext)
           
 void setMaxSizeChecker(MaxSizeChecker maxSizeChecker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static EvictionOperator create(MapServiceContext mapServiceContext)

create

public static EvictionOperator create(MemoryInfoAccessor memoryInfoAccessor,
                                      MapServiceContext mapServiceContext)

setMapServiceContext

public void setMapServiceContext(MapServiceContext mapServiceContext)

setMaxSizeChecker

public void setMaxSizeChecker(MaxSizeChecker maxSizeChecker)

getMaxSizeChecker

public MaxSizeChecker getMaxSizeChecker()

removeEvictableRecords

public void removeEvictableRecords(RecordStore recordStore,
                                   int evictableSize,
                                   MapConfig mapConfig,
                                   boolean backup)

fireEvent

public void fireEvent(Data key,
                      Object value,
                      String mapName,
                      MapServiceContext mapServiceContext)

evictableSize

public int evictableSize(int currentPartitionSize,
                         MapConfig mapConfig)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.