org.exoplatform.services.cache
Class FIFOExoCache
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap
org.exoplatform.services.cache.BaseExoCache
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
| 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 interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
FIFOExoCache
public FIFOExoCache()
FIFOExoCache
public FIFOExoCache(int maxSize)
FIFOExoCache
public FIFOExoCache(String name,
int maxSize)
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.