Public Member Functions

cern.gp.nodes.cache.NoCachingStrategy Class Reference

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

List of all members.

Public Member Functions

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

Detailed Description

A caching strategy that disables the cache.

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

Constructor & Destructor Documentation

cern.gp.nodes.cache.NoCachingStrategy.NoCachingStrategy (  ) 

Constructs a new caching strategy that does not do caching


Member Function Documentation

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

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

Implements cern.gp.nodes.cache.CachingStrategy.

boolean cern.gp.nodes.cache.NoCachingStrategy.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

Implements cern.gp.nodes.cache.CachingStrategy.

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

Validates the current cached value. This method is called to signal that the cached value has just been updated. The strategy should take this event into account for the implementation of isCached()

Implements cern.gp.nodes.cache.CachingStrategy.


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