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.
|
Modifier and Type | Field and Description |
---|---|
protected DoubleLinkedList<MemoryElementDescriptor<K,V>> |
AbstractDoubleLinkedListMemoryCache.list
thread-safe double linked list for lru
|
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.
|
Map<K,MemoryElementDescriptor<K,V>> |
AbstractDoubleLinkedListMemoryCache.createMap()
This is called by super initialize.
|
Map.Entry<K,MemoryElementDescriptor<K,V>> |
AbstractDoubleLinkedListMemoryCache.IteratorWrapper.next() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractDoubleLinkedListMemoryCache.adjustListForGet(MemoryElementDescriptor<K,V> me)
Adjust the list as needed for a get.
|
Constructor and Description |
---|
IteratorWrapper(Map<K,MemoryElementDescriptor<K,V>> m)
Wrapped to remove our wrapper object
|
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.
|
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.