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:
- java.io.Serializable, java.lang.Cloneable, java.util.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
|
Method Summary |
protected ObjectCacheInfo |
createObjectCacheInfo(long expTime,
java.lang.Object objToCache)
|
java.util.List |
getCachedObjects()
Returns a list of cached object that are considered as valid when the method is called. |
java.util.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 |
FIFOExoCache
public FIFOExoCache()
FIFOExoCache
public FIFOExoCache(int maxSize)
FIFOExoCache
public FIFOExoCache(java.lang.String name,
int maxSize)
createObjectCacheInfo
protected ObjectCacheInfo createObjectCacheInfo(long expTime,
java.lang.Object objToCache)
- Specified by:
createObjectCacheInfo in class BaseExoCache
getCachedObjects
public java.util.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 java.util.List removeCachedObjects()
throws java.lang.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:
java.lang.Exception - any exception
Copyright © 2012 eXo Platform SAS. All Rights Reserved.