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 - 
Constructor Summary
ConstructorsConstructorDescriptionEhCacheCompactor(EhCacheManager cacheManager, DarkFeaturesManager darkFeatureManager)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidcompact()Perform the compactionstatic voidflushStats(net.sf.ehcache.statistics.extended.ExtendedStatistics extendedStatistics, String statsName) Methods inherited from class com.atlassian.confluence.impl.cache.CacheCompactorSupport
run 
- 
Field Details
- 
STATS_COMPACTION_ENABLED
public static final boolean STATS_COMPACTION_ENABLED 
 - 
 - 
Constructor Details
- 
EhCacheCompactor
 
 - 
 - 
Method Details
- 
compact
public void compact()Description copied from interface:CacheCompactorPerform the compaction - 
flushStats
public static void flushStats(net.sf.ehcache.statistics.extended.ExtendedStatistics extendedStatistics, String statsName)  
 -