Search in sources :

Example 1 with EvictorImpl

use of com.hazelcast.map.impl.eviction.EvictorImpl in project hazelcast by hazelcast.

the class MapContainer method initEvictor.

// this method is overridden.
public void initEvictor() {
    MapEvictionPolicy mapEvictionPolicy = mapConfig.getMapEvictionPolicy();
    if (mapEvictionPolicy == null) {
        evictor = NULL_EVICTOR;
    } else {
        MemoryInfoAccessor memoryInfoAccessor = getMemoryInfoAccessor();
        EvictionChecker evictionChecker = new EvictionChecker(memoryInfoAccessor, mapServiceContext);
        IPartitionService partitionService = mapServiceContext.getNodeEngine().getPartitionService();
        evictor = new EvictorImpl(mapEvictionPolicy, evictionChecker, partitionService);
    }
}
Also used : EvictionChecker(com.hazelcast.map.impl.eviction.EvictionChecker) IPartitionService(com.hazelcast.spi.partition.IPartitionService) EvictorImpl(com.hazelcast.map.impl.eviction.EvictorImpl) RuntimeMemoryInfoAccessor(com.hazelcast.util.RuntimeMemoryInfoAccessor) MemoryInfoAccessor(com.hazelcast.util.MemoryInfoAccessor) MapEvictionPolicy(com.hazelcast.map.eviction.MapEvictionPolicy)

Aggregations

MapEvictionPolicy (com.hazelcast.map.eviction.MapEvictionPolicy)1 EvictionChecker (com.hazelcast.map.impl.eviction.EvictionChecker)1 EvictorImpl (com.hazelcast.map.impl.eviction.EvictorImpl)1 IPartitionService (com.hazelcast.spi.partition.IPartitionService)1 MemoryInfoAccessor (com.hazelcast.util.MemoryInfoAccessor)1 RuntimeMemoryInfoAccessor (com.hazelcast.util.RuntimeMemoryInfoAccessor)1