Public Member Functions

cern.gp.nodes.cache.CachingStrategy Interface Reference

Inheritance diagram for cern.gp.nodes.cache.CachingStrategy:
cern.gp.nodes.cache.NoCachingStrategy cern.gp.nodes.cache.StickyCachingStrategy cern.gp.nodes.cache.TimeLimitedCachingStrategy

List of all members.

Public Member Functions

boolean isCacheValid ()
void validateCache ()
void invalidateCache ()

Detailed Description

An object implementing this interface defines a strategy of caching. This object does not keep track of the cached objects but rather provide the strategy associated to the caching of those objects.

Version:
Revision:
1.2
Date:
2006/09/25 08:52:36
Author:
Lionel Mestre

Member Function Documentation

void cern.gp.nodes.cache.CachingStrategy.invalidateCache (  ) 

Invalidates the current cached value. This method is called to signal that the cached value should not be used anymore.

Implemented in cern.gp.nodes.cache.NoCachingStrategy, cern.gp.nodes.cache.StickyCachingStrategy, and cern.gp.nodes.cache.TimeLimitedCachingStrategy.

Referenced by cern.gp.nodes.impl.CacheablePropertySupport.resetCache(), and cern.gp.nodes.impl.CacheableIndexedPropertySupport.resetCache().

boolean cern.gp.nodes.cache.CachingStrategy.isCacheValid (  ) 

Checks whether the cache is still valid. If true is returned the cached value will be used. If false is returned the cached value will be discarded and the getter will be invoked to get a new value.

Returns:
true if the cache is still valid

Implemented in cern.gp.nodes.cache.NoCachingStrategy, cern.gp.nodes.cache.StickyCachingStrategy, and cern.gp.nodes.cache.TimeLimitedCachingStrategy.

Referenced by cern.gp.nodes.impl.CacheableIndexedPropertySupport.getIndexedValue(), cern.gp.nodes.impl.CacheablePropertySupport.getValue(), and cern.gp.nodes.impl.CacheableIndexedPropertySupport.getValue().

void cern.gp.nodes.cache.CachingStrategy.validateCache (  ) 

The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties