Class FIFOMemoryCache<K,V>
java.lang.Object
org.apache.commons.jcs3.engine.memory.AbstractMemoryCache<K,V>
org.apache.commons.jcs3.engine.memory.AbstractDoubleLinkedListMemoryCache<K,V>
org.apache.commons.jcs3.engine.memory.fifo.FIFOMemoryCache<K,V>
- All Implemented Interfaces:
IMemoryCache<K,
V>
The items are spooled in the order they are added. No adjustments to the list are made on get.
-
Field Summary
Fields inherited from class org.apache.commons.jcs3.engine.memory.AbstractDoubleLinkedListMemoryCache
list
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Does nothing.protected MemoryElementDescriptor<K,
V> Puts an item to the cache.Methods inherited from class org.apache.commons.jcs3.engine.memory.AbstractDoubleLinkedListMemoryCache
addFirst, addLast, createMap, freeElements, get, getStatistics, initialize, lockedGetElement, lockedRemoveAll, lockedRemoveElement, update
Methods inherited from class org.apache.commons.jcs3.engine.memory.AbstractMemoryCache
dispose, dumpMap, getCacheAttributes, getCacheName, getCompositeCache, getKeySet, getMultiple, getQuiet, getSize, remove, removeAll, removeByGroup, removeByHierarchy, setCacheAttributes, waterfal
-
Constructor Details
-
FIFOMemoryCache
public FIFOMemoryCache()
-
-
Method Details
-
adjustListForUpdate
protected MemoryElementDescriptor<K,V> adjustListForUpdate(ICacheElement<K, V> ce) throws IOExceptionPuts an item to the cache. Removes any pre-existing entries of the same key from the linked list and adds this one first.- Specified by:
adjustListForUpdate
in classAbstractDoubleLinkedListMemoryCache<K,
V> - Parameters:
ce
- The cache element, or entry wrapper- Returns:
- MemoryElementDescriptor the new node
- Throws:
IOException
-
adjustListForGet
Does nothing.- Specified by:
adjustListForGet
in classAbstractDoubleLinkedListMemoryCache<K,
V> - Parameters:
me
-
-