org.exoplatform.services.cache.impl.jboss.lru
Class LRUExoCacheCreator.LRUExoCache

java.lang.Object
  extended by org.exoplatform.services.cache.impl.jboss.AbstractExoCache
      extended by org.exoplatform.services.cache.impl.jboss.lru.LRUExoCacheCreator.LRUExoCache
All Implemented Interfaces:
ExoCache
Enclosing class:
LRUExoCacheCreator

public static class LRUExoCacheCreator.LRUExoCache
extends AbstractExoCache

The LRU implementation of an ExoCache


Nested Class Summary
 
Nested classes/interfaces inherited from class org.exoplatform.services.cache.impl.jboss.AbstractExoCache
AbstractExoCache.CacheEventListener
 
Field Summary
 
Fields inherited from class org.exoplatform.services.cache.impl.jboss.AbstractExoCache
cache
 
Constructor Summary
LRUExoCacheCreator.LRUExoCache(ExoCacheConfig config, org.jboss.cache.TreeCache cache, org.jboss.cache.eviction.LRUConfiguration lru)
           
 
Method Summary
 long getLiveTime()
           
 int getMaxAge()
           
 int getMaxSize()
           
 void setLiveTime(long timeToLiveSeconds)
           
 void setMaxAge(int maxAgeSeconds)
           
 void setMaxSize(int max)
           
 
Methods inherited from class org.exoplatform.services.cache.impl.jboss.AbstractExoCache
addCacheListener, clearCache, get, getCachedObjects, getCacheHit, getCacheMiss, getCacheSize, getLabel, getName, isDistributed, isLogEnabled, isReplicated, put, putMap, remove, removeCachedObjects, select, setDistributed, setLabel, setLogEnabled, setName, setReplicated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LRUExoCacheCreator.LRUExoCache

public LRUExoCacheCreator.LRUExoCache(ExoCacheConfig config,
                                      org.jboss.cache.TreeCache cache,
                                      org.jboss.cache.eviction.LRUConfiguration lru)
Method Detail

getLiveTime

public long getLiveTime()

getMaxSize

public int getMaxSize()

getMaxAge

public int getMaxAge()

setLiveTime

public void setLiveTime(long timeToLiveSeconds)

setMaxSize

public void setMaxSize(int max)

setMaxAge

public void setMaxAge(int maxAgeSeconds)


Copyright © 2009 eXo Platform SAS. All Rights Reserved.