eXo Kernel :: Cache Extension :: JBoss Cache Implementation 2.4.x-SNAPSHOT

org.exoplatform.services.cache.impl.jboss.ea
Class EAExoCacheCreator.EAExoCache

java.lang.Object
  extended by org.exoplatform.services.cache.impl.jboss.AbstractExoCache<Serializable,Object>
      extended by org.exoplatform.services.cache.impl.jboss.ea.EAExoCacheCreator.EAExoCache
All Implemented Interfaces:
ExoCache<Serializable,Object>
Enclosing class:
EAExoCacheCreator

public static class EAExoCacheCreator.EAExoCache
extends AbstractExoCache<Serializable,Object>

The ExpirationAlgorithm 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, rootFqn
 
Constructor Summary
EAExoCacheCreator.EAExoCache(ExoCacheConfig config, org.jboss.cache.Cache<Serializable,Object> cache, org.jboss.cache.Fqn<String> rooFqn, org.jboss.cache.eviction.ExpirationAlgorithmConfig ea, long expirationTimeout)
           
 
Method Summary
 long getExpirationTimeout()
           
 long getLiveTime()
           
 int getMaxSize()
           
protected  Object putOnly(Serializable key, Object value)
          We set the ExpirationAlgorithmConfig.EXPIRATION_KEY based on the expirationTimeout
 void setExpirationTimeout(long expirationTimeout)
           
 void setLiveTime(long period)
           
 void setMaxSize(int max)
           
 
Methods inherited from class org.exoplatform.services.cache.impl.jboss.AbstractExoCache
addCacheListener, clearCache, get, getCachedObjects, getCacheHit, getCacheMiss, getCacheSize, getFqn, 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

EAExoCacheCreator.EAExoCache

public EAExoCacheCreator.EAExoCache(ExoCacheConfig config,
                                    org.jboss.cache.Cache<Serializable,Object> cache,
                                    org.jboss.cache.Fqn<String> rooFqn,
                                    org.jboss.cache.eviction.ExpirationAlgorithmConfig ea,
                                    long expirationTimeout)
Method Detail

putOnly

protected Object putOnly(Serializable key,
                         Object value)
We set the ExpirationAlgorithmConfig.EXPIRATION_KEY based on the expirationTimeout

Overrides:
putOnly in class AbstractExoCache<Serializable,Object>
See Also:
AbstractExoCache.putOnly(java.io.Serializable, java.lang.Object)

setMaxSize

public void setMaxSize(int max)

setLiveTime

public void setLiveTime(long period)

getMaxSize

public int getMaxSize()

getLiveTime

public long getLiveTime()

getExpirationTimeout

public long getExpirationTimeout()

setExpirationTimeout

public void setExpirationTimeout(long expirationTimeout)

eXo Kernel :: Cache Extension :: JBoss Cache Implementation 2.4.x-SNAPSHOT

Copyright © 2015 eXo Platform SAS. All Rights Reserved.