com.atlassian.jira.cache
Class EhCacheCompactor

java.lang.Object
  extended by com.atlassian.jira.cache.EhCacheCompactor
All Implemented Interfaces:
CacheCompactor, Startable, com.atlassian.scheduler.JobRunner

public class EhCacheCompactor
extends Object
implements CacheCompactor, Startable, com.atlassian.scheduler.JobRunner

Cache compactor for EHCache

Since:
v6.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.cache.CacheCompactor
CacheCompactor.CacheCompactionResult
 
Constructor Summary
EhCacheCompactor(net.sf.ehcache.CacheManager cacheManager)
           
 
Method Summary
 CacheCompactor.CacheCompactionResult purgeExpiredCacheEntries()
          Removes expired entries from all caches.
 com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request)
           
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheCompactor

public EhCacheCompactor(net.sf.ehcache.CacheManager cacheManager)
Method Detail

purgeExpiredCacheEntries

public CacheCompactor.CacheCompactionResult purgeExpiredCacheEntries()
Description copied from interface: CacheCompactor
Removes expired entries from all caches.

Specified by:
purgeExpiredCacheEntries in interface CacheCompactor

start

public void start()
           throws Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
Exception - Allows implementations to throw an Exception.

runJob

@Nullable
public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request)
Specified by:
runJob in interface com.atlassian.scheduler.JobRunner


Copyright © 2002-2014 Atlassian. All Rights Reserved.