public interface I_CmsLruCacheObject
CmsFlexLruCache is organized as a double linked list, that's why objects implementing this interface need getters/setter for the next/previous nodes in the list of all cached objects.
CmsLruCache
限定符和类型 | 方法和说明 |
---|---|
void |
addToLruCache()
Invoked after an object was added to the cache.
|
int |
getLruCacheCosts()
Returns the cache costs of this object, as for example it's byte size.
|
I_CmsLruCacheObject |
getNextLruObject()
Returns the next object in the double linked list of all cached objects.
|
I_CmsLruCacheObject |
getPreviousLruObject()
Returns the previous object in the double linked list of all cached objects.
|
java.lang.Object |
getValue()
Returns the Object value.
|
void |
removeFromLruCache()
Invoked after the object was removed to the cache.
|
void |
setNextLruObject(I_CmsLruCacheObject theNextObject)
Set the next object in the double linked list of all cached objects.
|
void |
setPreviousLruObject(I_CmsLruCacheObject thePreviousObject)
Set the previous object in the double linked list of all cached objects.
|
void setNextLruObject(I_CmsLruCacheObject theNextObject)
theNextObject
- the next objectI_CmsLruCacheObject getNextLruObject()
void setPreviousLruObject(I_CmsLruCacheObject thePreviousObject)
thePreviousObject
- the previous objectI_CmsLruCacheObject getPreviousLruObject()
void addToLruCache()
void removeFromLruCache()
int getLruCacheCosts()
java.lang.Object getValue()