Package | Description |
---|---|
org.apache.commons.jcs3.engine.memory |
Parent package for memory type plugins.
|
org.apache.commons.jcs3.engine.memory.fifo | |
org.apache.commons.jcs3.engine.memory.lru |
The primary memory plugin using a 'least recently used' removal policy.
|
org.apache.commons.jcs3.engine.memory.mru |
A memory plugin implemented using a 'most recently used' removal policy.
|
org.apache.commons.jcs3.engine.memory.soft |
A memory plugin implemented using soft references.
|
org.apache.commons.jcs3.engine.memory.util |
Modifier and Type | Field and Description |
---|---|
protected DoubleLinkedList<MemoryElementDescriptor<K,V>> |
AbstractDoubleLinkedListMemoryCache.list
thread-safe double linked list for lru
|
protected Map<K,MemoryElementDescriptor<K,V>> |
AbstractMemoryCache.map
Map where items are stored by key.
|
Modifier and Type | Method and Description |
---|---|
protected 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 algorithm
|
Modifier and Type | Method and Description |
---|---|
abstract Map<K,MemoryElementDescriptor<K,V>> |
AbstractMemoryCache.createMap()
Children must implement this method.
|
ConcurrentMap<K,MemoryElementDescriptor<K,V>> |
AbstractDoubleLinkedListMemoryCache.createMap()
This is called by super initialize.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractDoubleLinkedListMemoryCache.adjustListForGet(MemoryElementDescriptor<K,V> me)
Adjust the list as needed for a get.
|
protected abstract void |
AbstractMemoryCache.lockedGetElement(MemoryElementDescriptor<K,V> me)
Update control structures after get
(guarded by the lock)
|
protected void |
AbstractDoubleLinkedListMemoryCache.lockedGetElement(MemoryElementDescriptor<K,V> me)
Update control structures after get
(guarded by the lock)
|
protected abstract void |
AbstractMemoryCache.lockedRemoveElement(MemoryElementDescriptor<K,V> me)
Remove element from control structure
(guarded by the lock)
|
protected void |
AbstractDoubleLinkedListMemoryCache.lockedRemoveElement(MemoryElementDescriptor<K,V> me)
Remove element from control structure
(guarded by the lock)
|
Modifier and Type | Method and Description |
---|---|
protected MemoryElementDescriptor<K,V> |
FIFOMemoryCache.adjustListForUpdate(ICacheElement<K,V> ce)
Puts an item to the cache.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FIFOMemoryCache.adjustListForGet(MemoryElementDescriptor<K,V> me)
Does nothing.
|
Modifier and Type | Method and Description |
---|---|
protected MemoryElementDescriptor<K,V> |
LRUMemoryCache.adjustListForUpdate(ICacheElement<K,V> ce)
Puts an item to the cache.
|
Modifier and Type | Method and Description |
---|---|
Map<K,MemoryElementDescriptor<K,V>> |
LHMLRUMemoryCache.createMap()
Returns a synchronized LHMSpooler
|
Modifier and Type | Method and Description |
---|---|
protected 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)
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
LHMLRUMemoryCache.LHMSpooler.removeEldestEntry(Map.Entry<K,MemoryElementDescriptor<K,V>> eldest)
Remove eldest.
|
Modifier and Type | Method and Description |
---|---|
protected MemoryElementDescriptor<K,V> |
MRUMemoryCache.adjustListForUpdate(ICacheElement<K,V> ce)
Adds the item to the front of the list.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MRUMemoryCache.adjustListForGet(MemoryElementDescriptor<K,V> me)
Makes the item the last in the list.
|
Modifier and Type | Method and Description |
---|---|
ConcurrentMap<K,MemoryElementDescriptor<K,V>> |
SoftReferenceMemoryCache.createMap() |
Modifier and Type | Method and Description |
---|---|
protected 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)
|
Modifier and Type | Class and Description |
---|---|
class |
SoftReferenceElementDescriptor<K,V>
This wrapper is needed for double linked lists.
|
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.