public void info(Object message, Throwable t) { delegate.info(message, t); }
public void info(Object message, Throwable t) { delegate.info(message, t); }
public void info(Object message) { delegate.info(message); }
public void info(Object message) { delegate.info(message); }
private void logExpiry(final K key, final TimestampedValue<V> entry, final int now) { if (config.isLoggingEnabled()) { LOGGER.info(ManagerUtil.getClientID() + " expiring key: " + key + " (expiresAt = " + (entry == null ? "[null entry]" : entry.expiresAt(config)) + ", now = " + now + ")"); } }
private void logExpiry(final K key, final TimestampedValue<V> entry, final int now) { if (config.isLoggingEnabled()) { LOGGER.info(ManagerUtil.getClientID() + " expiring key: " + key + " (expiresAt = " + (entry == null ? "[null entry]" : entry.expiresAt(config)) + ", now = " + now + ")"); } }
private void logEviction(final K key, final TimestampedValue<V> entry, final int now) { if (config.isLoggingEnabled()) { LOGGER.info(ManagerUtil.getClientID() + " expiring key: " + key + " (expiresAt = " + entry.expiresAt(config) + ", now = " + now + ")"); } }
protected void invalidateCacheEntries(final Iterator<K> keys) { int examined = 0; int expired = 0; while (keys.hasNext()) { K key = keys.next(); try { TimestampedValue<V> wrappedValue = data.get(key); if (wrappedValue == null) continue; examined++; int now = getTime(); if (wrappedValue.isExpired(now, config)) { expired++; expire(GetType.COHERENT, key, wrappedValue, now); } } catch (Throwable t) { LOGGER.error("Unhandled exception inspecting item for [" + key + "] for expiration", t); } } if (config.isLoggingEnabled()) { LOGGER.info("Invalidated cache entries - examined: " + examined + ", expired: " + expired); } if (isStatisticsEnabled()) { statistics.increment(examined, expired); } }
protected void initializeOnLoad(final boolean startEviction) { if (config.isLoggingEnabled()) { LOGGER.info("Initializing CHMDistributedMap, starting eviction thread"); } this.timeSource = new SystemTimeSource(); this.orphanEvictor = new OrphanEvictionListener<K>(config, this, orphanEvictorLock); this.evictionScheduler = new EvictionScheduler(config, new Evictor<K>(this, orphanEvictor)); this.statistics = new EvictionStatistics(); if (!this.config.isServerMap()) { // target capacity eviction listener not needed for servermap this.data.registerMapSizeListener(new TargetCapacityMapSizeListener(data, getConfig())); } if (startEviction) { startEviction(); } }
protected void initializeOnLoad(final boolean startEviction) { if (config.isLoggingEnabled()) { LOGGER.info("Initializing CHMDistributedMap, starting eviction thread"); } this.timeSource = new SystemTimeSource(); this.orphanEvictor = new OrphanEvictionListener<K>(config, this, orphanEvictorLock); this.evictionScheduler = new EvictionScheduler(config, new Evictor<K>(this, orphanEvictor)); this.statistics = new EvictionStatistics(); if (this.data instanceof CacheEvictionListenerSupport) { ((CacheEvictionListenerSupport) this.data).addCacheEvictionListener(this); } if (!this.config.isServerMap()) { // target capacity eviction listener not needed for servermap this.data.registerMapSizeListener(new TargetCapacityMapSizeListener(data, getConfig(), this)); } if (startEviction) { startEviction(); } }
protected void initializeOnLoad(final boolean startEviction) { if (config.isLoggingEnabled()) { LOGGER.info("Initializing CHMDistributedMap, starting eviction thread"); } this.timeSource = new SystemTimeSource(); this.orphanEvictor = new OrphanEvictionListener<K>(config, this, orphanEvictorLock); this.evictionScheduler = new EvictionScheduler(config, new Evictor<K>(this, orphanEvictor)); this.statistics = new EvictionStatistics(); if (this.data instanceof CacheEvictionListenerSupport) { ((CacheEvictionListenerSupport) this.data).addCacheEvictionListener(this); } if (!this.config.isServerMap()) { // target capacity eviction listener not needed for servermap this.data.registerMapSizeListener(new TargetCapacityMapSizeListener(data, getConfig(), this)); } if (startEviction) { startEviction(); } }