loadInitialKeys();
if (mapStoreConfig.getWriteDelaySeconds() > 0) {
final ExecutionService executionService = nodeEngine.getExecutionService();
executionService.register(mapStoreScheduledExecutorName, 1, 100000, ExecutorType.CACHED);
ScheduledExecutorService scheduledExecutor = executionService
.getScheduledExecutor(mapStoreScheduledExecutorName);
mapStoreScheduler = EntryTaskSchedulerFactory.newScheduler(scheduledExecutor,
new MapStoreProcessor(this, mapService),
ScheduleType.FOR_EACH);
} else {
mapStoreScheduler = null;
}
} else {
mapStoreScheduler = null;
}
ScheduledExecutorService defaultScheduledExecutor = nodeEngine.getExecutionService()
.getDefaultScheduledExecutor();
ttlEvictionScheduler = EntryTaskSchedulerFactory.newScheduler(defaultScheduledExecutor,
new EvictionProcessor(nodeEngine, mapService, name), ScheduleType.POSTPONE);
idleEvictionScheduler = EntryTaskSchedulerFactory.newScheduler(defaultScheduledExecutor,
new EvictionProcessor(nodeEngine, mapService, name), ScheduleType.POSTPONE);