org.apache.jcs.engine.memory.fifo
Class FIFOMemoryCache
java.lang.Object
org.apache.jcs.engine.memory.AbstractMemoryCache
org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache
org.apache.jcs.engine.memory.fifo.FIFOMemoryCache
- All Implemented Interfaces:
- Serializable, IMemoryCache, MemoryCache
public class FIFOMemoryCache
- extends AbstractDoulbeLinkedListMemoryCache
The items are spooled in the order they are added. No adjustments to the list are made on get.
- See Also:
- Serialized Form
Methods inherited from class org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache |
addFirst, addLast, createMap, dumpCacheEntries, dumpCacheSize, dumpMap, freeElements, get, getIterator, getKeyArray, getStatistics, initialize, remove, removeAll, spoolLastElement, update, verifyCache |
Methods inherited from class org.apache.jcs.engine.memory.AbstractMemoryCache |
dispose, getCacheAttributes, getCacheName, getCompositeCache, getGroupKeys, getMultiple, getQuiet, getSize, getStatus, setCacheAttributes, waterfal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIFOMemoryCache
public FIFOMemoryCache()
adjustListForUpdate
protected MemoryElementDescriptor adjustListForUpdate(ICacheElement ce)
throws IOException
- Puts 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 class AbstractDoulbeLinkedListMemoryCache
- Parameters:
ce
- The cache element, or entry wrapper
- Returns:
- MemoryElementDescriptor the new node
- Throws:
IOException
adjustListForGet
protected void adjustListForGet(MemoryElementDescriptor me)
- Does nothing.
- Specified by:
adjustListForGet
in class AbstractDoulbeLinkedListMemoryCache
- Parameters:
me
-
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.