Class EhCacheCompactor
- java.lang.Object
-
- com.atlassian.confluence.impl.cache.CacheCompactorSupport
-
- com.atlassian.confluence.cache.ehcache.EhCacheCompactor
-
- All Implemented Interfaces:
CacheCompactor
,Runnable
@Internal @ParametersAreNonnullByDefault public class EhCacheCompactor extends CacheCompactorSupport
Handles the process of compacting EHCache caches by forcing eviction of expired elements. This is potentially expensive, so shouldn't be done willy-nilly, but only on a controlled schedule.- Since:
- 5.7
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
STATS_COMPACTION_ENABLED
-
Constructor Summary
Constructors Constructor Description EhCacheCompactor(EhCacheManager cacheManager, DarkFeaturesManager darkFeatureManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compact()
Perform the compactionstatic void
flushStats(net.sf.ehcache.statistics.extended.ExtendedStatistics extendedStatistics, String statsName)
-
Methods inherited from class com.atlassian.confluence.impl.cache.CacheCompactorSupport
run
-
-
-
-
Constructor Detail
-
EhCacheCompactor
public EhCacheCompactor(EhCacheManager cacheManager, DarkFeaturesManager darkFeatureManager)
-
-
Method Detail
-
compact
public void compact()
Description copied from interface:CacheCompactor
Perform the compaction
-
flushStats
public static void flushStats(net.sf.ehcache.statistics.extended.ExtendedStatistics extendedStatistics, String statsName)
-
-