org.apache.jcs.engine.memory.fifo
Class FIFOMemoryCache<K extends Serializable,V extends Serializable>
java.lang.Object
org.apache.jcs.engine.memory.AbstractMemoryCache<K,V>
org.apache.jcs.engine.memory.AbstractDoubleLinkedListMemoryCache<K,V>
org.apache.jcs.engine.memory.fifo.FIFOMemoryCache<K,V>
- All Implemented Interfaces:
- Serializable, IRequireScheduler, IMemoryCache<K,V>
public class FIFOMemoryCache<K extends Serializable,V extends Serializable>
- extends AbstractDoubleLinkedListMemoryCache<K,V>
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.AbstractDoubleLinkedListMemoryCache |
addFirst, addLast, createMap, dumpCacheEntries, dumpCacheSize, freeElements, get, getIterator, getKeySet, getStatistics, initialize, remove, removeAll, spoolLastElement, update, verifyCache |
| Methods inherited from class org.apache.jcs.engine.memory.AbstractMemoryCache |
dispose, dumpMap, getCacheAttributes, getCacheName, getCompositeCache, getGroupKeys, getGroupNames, getMultiple, getQuiet, getSize, getStatus, setCacheAttributes, setScheduledExecutorService, 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<K,V> adjustListForUpdate(ICacheElement<K,V> 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 AbstractDoubleLinkedListMemoryCache<K extends Serializable,V extends Serializable>
- Parameters:
ce - The cache element, or entry wrapper
- Returns:
- MemoryElementDescriptor the new node
- Throws:
IOException
adjustListForGet
protected void adjustListForGet(MemoryElementDescriptor<K,V> me)
- Does nothing.
- Specified by:
adjustListForGet in class AbstractDoubleLinkedListMemoryCache<K extends Serializable,V extends Serializable>
- Parameters:
me -
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.