|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache
com.opensymphony.oscache.base.algorithm.FIFOCache
public class FIFOCache
FIFO (First In First Out) based queue algorithm for the cache.
No synchronization is required in this class since the
AbstractConcurrentReadCache already takes care of any
synchronization requirements.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache |
|---|
AbstractConcurrentReadCache.Entry, AbstractConcurrentReadCache.HashIterator, AbstractConcurrentReadCache.KeyIterator, AbstractConcurrentReadCache.ValueIterator |
| Field Summary | |
|---|---|
private Collection |
list
A queue containing all cache keys |
private static long |
serialVersionUID
|
| Fields inherited from class com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache |
|---|
barrierLock, count, DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR, DEFAULT_MAX_ENTRIES, entrySet, groups, keySet, lastWrite, loadFactor, maxEntries, memoryCaching, NULL, persistenceListener, table, threshold, UNLIMITED, unlimitedDiskCache, values |
| Constructor Summary | |
|---|---|
FIFOCache()
Constructs a FIFO Cache. |
|
FIFOCache(int capacity)
Constructs a FIFO Cache of the specified capacity. |
|
| Method Summary | |
|---|---|
protected void |
itemPut(Object key)
An object was put in the cache. |
protected void |
itemRemoved(Object key)
Remove specified key since that object has been removed from the cache. |
protected void |
itemRetrieved(Object key)
An object was retrieved from the cache. |
protected Object |
removeItem()
An item needs to be removed from the cache. |
| Methods inherited from class com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache |
|---|
capacity, clear, clone, contains, containsKey, containsValue, elements, entrySet, findAndRemoveEntry, get, getGroup, getGroupForReading, getGroupsForReading, getMaxEntries, getPersistenceListener, getTableForReading, isEmpty, isMemoryCaching, isOverflowPersistence, isUnlimitedDiskCache, keys, keySet, loadFactor, persistClear, persistRemove, persistRemoveGroup, persistRetrieve, persistRetrieveGroup, persistStore, persistStoreGroup, put, putAll, recordModification, rehash, remove, removeForce, setMaxEntries, setMemoryCaching, setOverflowPersistence, setPersistenceListener, setUnlimitedDiskCache, size, sput, sremove, 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 |
|---|
equals, hashCode |
| Field Detail |
|---|
private static final long serialVersionUID
private Collection list
| Constructor Detail |
|---|
public FIFOCache()
public FIFOCache(int capacity)
capacity - The maximum cache capacity.| Method Detail |
|---|
protected void itemRetrieved(Object key)
itemRetrieved in class AbstractConcurrentReadCachekey - The cache key of the item that was retrieved.protected void itemPut(Object key)
itemPut in class AbstractConcurrentReadCachekey - The cache key of the item that was put.protected Object removeItem()
removeItem in class AbstractConcurrentReadCacheprotected void itemRemoved(Object key)
itemRemoved in class AbstractConcurrentReadCachekey - The cache key of the item that was removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||