public CacheEntryInvalidator(GlobalKeySet globalKeySet, int startEvictionIndex, int lastEvictionIndex,
CacheConfig config, Manager manager, CacheDataStore store) {
this.config = config;
if (config.isGlobalEvictionEnabled()) {
Assert.eval(config.getGlobalEvictionFrequency() > 0);
}
this.startEvictionIndex = startEvictionIndex;
this.lastEvictionIndex = lastEvictionIndex;
this.globalKeySet = globalKeySet;
this.store = store;
logger = manager.getLogger("com.tc.cache.CacheEntryInvalidator");
this.localInvalidationLock = new Lock(createLockName("tc:local_time_expiry_cache_invalidator_lock_", config
.getCacheName(), startEvictionIndex), manager);
this.globalInvalidationLock = new Lock(createLockName("tc:global_time_expiry_cache_invalidator_lock_", config
.getCacheName(), startEvictionIndex), manager);
}