com.atlassian.confluence.cache.ehcache
Class EhCacheCompactor

java.lang.Object
  extended by com.atlassian.confluence.cache.ehcache.EhCacheCompactor
All Implemented Interfaces:
CacheCompactor

@Internal
@ParametersAreNonnullByDefault
public class EhCacheCompactor
extends Object
implements CacheCompactor

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

Constructor Summary
EhCacheCompactor(EhCacheManager cacheManager, DarkFeaturesManager darkFeatureManager)
           
 
Method Summary
 void compact()
          Perform the compaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheCompactor

public EhCacheCompactor(EhCacheManager cacheManager,
                        DarkFeaturesManager darkFeatureManager)
Method Detail

compact

public void compact()
Description copied from interface: CacheCompactor
Perform the compaction

Specified by:
compact in interface CacheCompactor


Copyright © 2003–2015 Atlassian. All rights reserved.