org.exoplatform.services.cache
Class FIFOExoCache

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap
              extended by org.exoplatform.services.cache.BaseExoCache
                  extended by org.exoplatform.services.cache.FIFOExoCache
All Implemented Interfaces:
Serializable, Cloneable, Map, ExoCache

public class FIFOExoCache
extends BaseExoCache

Created by The eXo Platform SAS Author : Tuan Nguyen tuan08@users.sourceforge.net Sat, Sep 13, 2003 @ Time: 1:12:22 PM

See Also:
Serialized Form

Nested Class Summary
static class FIFOExoCache.ObjectCacheInfoImpl
           
 
Constructor Summary
FIFOExoCache()
           
FIFOExoCache(int maxSize)
           
FIFOExoCache(String name, int maxSize)
           
 
Method Summary
protected  ObjectCacheInfo createObjectCacheInfo(long expTime, Object objToCache)
           
 List getCachedObjects()
          Returns a list of cached object that are considered as valid when the method is called.
 List removeCachedObjects()
          Clears the cache and returns the list of cached object that are considered as valid when the method is called.
 
Methods inherited from class org.exoplatform.services.cache.BaseExoCache
addCacheListener, clearCache, get, getCacheHit, getCacheMiss, getCacheSize, getLabel, getLiveTime, getMaxSize, getName, isDistributed, isLogEnabled, isReplicated, localClear, localPut, localRemove, put, putMap, remove, removeEldestEntry, select, setDistributed, setLabel, setLiveTime, setLogEnabled, setMaxSize, setName, setReplicated
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

FIFOExoCache

public FIFOExoCache()

FIFOExoCache

public FIFOExoCache(int maxSize)

FIFOExoCache

public FIFOExoCache(String name,
                    int maxSize)
Method Detail

createObjectCacheInfo

protected ObjectCacheInfo createObjectCacheInfo(long expTime,
                                                Object objToCache)
Specified by:
createObjectCacheInfo in class BaseExoCache

getCachedObjects

public List getCachedObjects()
Description copied from interface: ExoCache
Returns a list of cached object that are considered as valid when the method is called. Any non valid object will not be returnted.

Specified by:
getCachedObjects in interface ExoCache
Overrides:
getCachedObjects in class BaseExoCache
Returns:
the list of cached objects

removeCachedObjects

public List removeCachedObjects()
                         throws Exception
Description copied from interface: ExoCache
Clears the cache and returns the list of cached object that are considered as valid when the method is called. Any non valid object will not be returned.

Specified by:
removeCachedObjects in interface ExoCache
Overrides:
removeCachedObjects in class BaseExoCache
Returns:
the list of cached objects
Throws:
Exception - any exception


Copyright © 2009 eXo Platform SAS. All Rights Reserved.