Uses of Class
org.apache.commons.jcs3.engine.memory.util.MemoryElementDescriptor
Packages that use MemoryElementDescriptor
Package
Description
Parent package for memory type plugins.
The primary memory plugin using a 'least recently used' removal policy.
A memory plugin implemented using a 'most recently used' removal policy.
A memory plugin implemented using soft references.
-
Uses of MemoryElementDescriptor in org.apache.commons.jcs3.engine.memory
Fields in org.apache.commons.jcs3.engine.memory with type parameters of type MemoryElementDescriptorModifier and TypeFieldDescriptionprotected DoubleLinkedList<MemoryElementDescriptor<K,
V>> AbstractDoubleLinkedListMemoryCache.list
thread-safe double linked list for lruprotected Map<K,
MemoryElementDescriptor<K, V>> AbstractMemoryCache.map
Map where items are stored by key.Methods in org.apache.commons.jcs3.engine.memory that return MemoryElementDescriptorModifier and TypeMethodDescriptionprotected MemoryElementDescriptor<K,
V> AbstractDoubleLinkedListMemoryCache.addFirst
(ICacheElement<K, V> ce) Adds a new node to the start of the link list.protected MemoryElementDescriptor<K,
V> AbstractDoubleLinkedListMemoryCache.addLast
(ICacheElement<K, V> ce) Adds a new node to the end of the link list.protected abstract MemoryElementDescriptor<K,
V> AbstractDoubleLinkedListMemoryCache.adjustListForUpdate
(ICacheElement<K, V> ce) Children implement this to control the cache expiration algorithmMethods in org.apache.commons.jcs3.engine.memory that return types with arguments of type MemoryElementDescriptorModifier and TypeMethodDescriptionAbstractDoubleLinkedListMemoryCache.createMap()
This is called by super initialize.abstract Map<K,
MemoryElementDescriptor<K, V>> AbstractMemoryCache.createMap()
Children must implement this method.Methods in org.apache.commons.jcs3.engine.memory with parameters of type MemoryElementDescriptorModifier and TypeMethodDescriptionprotected abstract void
AbstractDoubleLinkedListMemoryCache.adjustListForGet
(MemoryElementDescriptor<K, V> me) Adjust the list as needed for a get.protected void
AbstractDoubleLinkedListMemoryCache.lockedGetElement
(MemoryElementDescriptor<K, V> me) Update control structures after get (guarded by the lock)protected abstract void
AbstractMemoryCache.lockedGetElement
(MemoryElementDescriptor<K, V> me) Update control structures after get (guarded by the lock)protected void
AbstractDoubleLinkedListMemoryCache.lockedRemoveElement
(MemoryElementDescriptor<K, V> me) Remove element from control structure (guarded by the lock)protected abstract void
AbstractMemoryCache.lockedRemoveElement
(MemoryElementDescriptor<K, V> me) Remove element from control structure (guarded by the lock) -
Uses of MemoryElementDescriptor in org.apache.commons.jcs3.engine.memory.fifo
Methods in org.apache.commons.jcs3.engine.memory.fifo that return MemoryElementDescriptorModifier and TypeMethodDescriptionprotected MemoryElementDescriptor<K,
V> FIFOMemoryCache.adjustListForUpdate
(ICacheElement<K, V> ce) Puts an item to the cache.Methods in org.apache.commons.jcs3.engine.memory.fifo with parameters of type MemoryElementDescriptorModifier and TypeMethodDescriptionprotected void
FIFOMemoryCache.adjustListForGet
(MemoryElementDescriptor<K, V> me) Does nothing. -
Uses of MemoryElementDescriptor in org.apache.commons.jcs3.engine.memory.lru
Methods in org.apache.commons.jcs3.engine.memory.lru that return MemoryElementDescriptorModifier and TypeMethodDescriptionprotected MemoryElementDescriptor<K,
V> LRUMemoryCache.adjustListForUpdate
(ICacheElement<K, V> ce) Puts an item to the cache.Methods in org.apache.commons.jcs3.engine.memory.lru that return types with arguments of type MemoryElementDescriptorModifier and TypeMethodDescriptionLHMLRUMemoryCache.createMap()
Returns a synchronized LHMSpoolerMethods in org.apache.commons.jcs3.engine.memory.lru with parameters of type MemoryElementDescriptorModifier and TypeMethodDescriptionprotected void
LRUMemoryCache.adjustListForGet
(MemoryElementDescriptor<K, V> me) Makes the item the first in the list.protected void
LHMLRUMemoryCache.lockedGetElement
(MemoryElementDescriptor<K, V> me) Update control structures after get (guarded by the lock)protected void
LHMLRUMemoryCache.lockedRemoveElement
(MemoryElementDescriptor<K, V> me) Remove element from control structure (guarded by the lock)Method parameters in org.apache.commons.jcs3.engine.memory.lru with type arguments of type MemoryElementDescriptorModifier and TypeMethodDescriptionprotected boolean
LHMLRUMemoryCache.LHMSpooler.removeEldestEntry
(Map.Entry<K, MemoryElementDescriptor<K, V>> eldest) Remove eldest. -
Uses of MemoryElementDescriptor in org.apache.commons.jcs3.engine.memory.mru
Methods in org.apache.commons.jcs3.engine.memory.mru that return MemoryElementDescriptorModifier and TypeMethodDescriptionprotected MemoryElementDescriptor<K,
V> MRUMemoryCache.adjustListForUpdate
(ICacheElement<K, V> ce) Adds the item to the front of the list.Methods in org.apache.commons.jcs3.engine.memory.mru with parameters of type MemoryElementDescriptorModifier and TypeMethodDescriptionprotected void
MRUMemoryCache.adjustListForGet
(MemoryElementDescriptor<K, V> me) Makes the item the last in the list. -
Uses of MemoryElementDescriptor in org.apache.commons.jcs3.engine.memory.soft
Methods in org.apache.commons.jcs3.engine.memory.soft that return types with arguments of type MemoryElementDescriptorMethods in org.apache.commons.jcs3.engine.memory.soft with parameters of type MemoryElementDescriptorModifier and TypeMethodDescriptionprotected void
SoftReferenceMemoryCache.lockedGetElement
(MemoryElementDescriptor<K, V> me) Update control structures after get (guarded by the lock)protected void
SoftReferenceMemoryCache.lockedRemoveElement
(MemoryElementDescriptor<K, V> me) Remove element from control structure (guarded by the lock) -
Uses of MemoryElementDescriptor in org.apache.commons.jcs3.engine.memory.util
Subclasses of MemoryElementDescriptor in org.apache.commons.jcs3.engine.memory.utilModifier and TypeClassDescriptionclass
This wrapper is needed for double linked lists.