Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.flex.cache
Class CmsFlexCache.CmsFlexCacheVariation  view CmsFlexCache.CmsFlexCacheVariation download CmsFlexCache.CmsFlexCacheVariation.java

java.lang.Object
  extended bycom.opencms.flex.cache.CmsFlexCache.CmsFlexCacheVariation
All Implemented Interfaces:
com.opencms.flex.util.I_CmsFlexLruCacheObject
Enclosing class:
CmsFlexCache

class CmsFlexCache.CmsFlexCacheVariation
extends java.lang.Object
implements com.opencms.flex.util.I_CmsFlexLruCacheObject

A simple data container class for the FlexCache variations.

Version:
$Revision: 1.17 $

Field Summary
private static int DEBUG
          Internal debug switch
 CmsFlexCacheKey key
          The key belonging to the resource
private  com.opencms.flex.util.I_CmsFlexLruCacheObject m_Next
          Pointer to the next cache entry in the LRU cache
private  com.opencms.flex.util.I_CmsFlexLruCacheObject m_Previous
          Pointer to the previous cache entry in the LRU cache.
 java.util.Map map
          Maps variations to CmsFlexCacheEntries
 
Constructor Summary
CmsFlexCache.CmsFlexCacheVariation(CmsFlexCacheKey theKey)
          Generates a new instance of CmsFlexCacheVariation.
 
Method Summary
 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.
 com.opencms.flex.util.I_CmsFlexLruCacheObject getNextLruObject()
          Returns the next object in the double linked list of all cached objects.
 com.opencms.flex.util.I_CmsFlexLruCacheObject getPreviousLruObject()
          Returns the previous object in the double linked list of all cached objects.
 void removeFromLruCache()
          Invoked after the object was removed to the cache.
 void setNextLruObject(com.opencms.flex.util.I_CmsFlexLruCacheObject theNextEntry)
          Set the next object in the double linked list of all cached objects.
 void setPreviousLruObject(com.opencms.flex.util.I_CmsFlexLruCacheObject thePreviousEntry)
          Set the previous object in the double linked list of all cached objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Next

private com.opencms.flex.util.I_CmsFlexLruCacheObject m_Next
Pointer to the next cache entry in the LRU cache


m_Previous

private com.opencms.flex.util.I_CmsFlexLruCacheObject m_Previous
Pointer to the previous cache entry in the LRU cache.


key

public CmsFlexCacheKey key
The key belonging to the resource


map

public java.util.Map map
Maps variations to CmsFlexCacheEntries


DEBUG

private static final int DEBUG
Internal debug switch

See Also:
Constant Field Values
Constructor Detail

CmsFlexCache.CmsFlexCacheVariation

public CmsFlexCache.CmsFlexCacheVariation(CmsFlexCacheKey theKey)
Generates a new instance of CmsFlexCacheVariation.

Method Detail

setNextLruObject

public void setNextLruObject(com.opencms.flex.util.I_CmsFlexLruCacheObject theNextEntry)
Description copied from interface: com.opencms.flex.util.I_CmsFlexLruCacheObject
Set the next object in the double linked list of all cached objects.

Specified by:
setNextLruObject in interface com.opencms.flex.util.I_CmsFlexLruCacheObject

getNextLruObject

public com.opencms.flex.util.I_CmsFlexLruCacheObject getNextLruObject()
Description copied from interface: com.opencms.flex.util.I_CmsFlexLruCacheObject
Returns the next object in the double linked list of all cached objects.

Specified by:
getNextLruObject in interface com.opencms.flex.util.I_CmsFlexLruCacheObject

setPreviousLruObject

public void setPreviousLruObject(com.opencms.flex.util.I_CmsFlexLruCacheObject thePreviousEntry)
Description copied from interface: com.opencms.flex.util.I_CmsFlexLruCacheObject
Set the previous object in the double linked list of all cached objects.

Specified by:
setPreviousLruObject in interface com.opencms.flex.util.I_CmsFlexLruCacheObject

getPreviousLruObject

public com.opencms.flex.util.I_CmsFlexLruCacheObject getPreviousLruObject()
Description copied from interface: com.opencms.flex.util.I_CmsFlexLruCacheObject
Returns the previous object in the double linked list of all cached objects.

Specified by:
getPreviousLruObject in interface com.opencms.flex.util.I_CmsFlexLruCacheObject

addToLruCache

public void addToLruCache()
Description copied from interface: com.opencms.flex.util.I_CmsFlexLruCacheObject
Invoked after an object was added to the cache.

Specified by:
addToLruCache in interface com.opencms.flex.util.I_CmsFlexLruCacheObject

removeFromLruCache

public void removeFromLruCache()
Description copied from interface: com.opencms.flex.util.I_CmsFlexLruCacheObject
Invoked after the object was removed to the cache.

Specified by:
removeFromLruCache in interface com.opencms.flex.util.I_CmsFlexLruCacheObject

getLruCacheCosts

public int getLruCacheCosts()
Description copied from interface: com.opencms.flex.util.I_CmsFlexLruCacheObject
Returns the cache costs of this object, as for example it's byte size.

Specified by:
getLruCacheCosts in interface com.opencms.flex.util.I_CmsFlexLruCacheObject