Class FIFOCache
java.lang.Object
NetStrategies.CacheStrategy
NetStrategies.CacheStrategies.FIFOCache
- All Implemented Interfaces:
AutoCheck
FIFO (First In First Out) cache eviction strategy: removes the item that first joined the cached item list.
-
Field Summary
Fields inherited from class CacheStrategy
engine, netSystem, removeItemMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRemoveItem(LinkedList<CacheItem> caches) For FIFO cache is to find the item that first join the cached item list.Methods inherited from class CacheStrategy
check, getRemoveItemMode, setNetSystem, setRandomEngine, setRemoveItemMode
-
Constructor Details
-
FIFOCache
public FIFOCache()
-
-
Method Details
-
getRemoveItem
For FIFO cache is to find the item that first join the cached item list.- Specified by:
getRemoveItemin classCacheStrategy- Parameters:
caches- the list of the cached items.- Returns:
-