Package | Description |
---|---|
org.apache.commons.jcs.engine.memory |
Parent package for memory type plugins.
|
org.apache.commons.jcs.engine.memory.fifo | |
org.apache.commons.jcs.engine.memory.lru |
The primary memory plugin using a 'least recently used' removal policy.
|
org.apache.commons.jcs.engine.memory.mru |
A memory plugin implemented using a 'most recently used' removal policy.
|
org.apache.commons.jcs.engine.memory.soft |
A memory plugin implemented using soft references.
|
org.apache.commons.jcs.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.
|
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.
|
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 | Class and Description |
---|---|
class |
DefaultMemoryElementDescriptor<K,V>
Deprecated.
Use MemoryElementDescriptor directly
|
class |
SoftReferenceElementDescriptor<K,V>
This wrapper is needed for double linked lists.
|
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.