public abstract class

CustomizationsAwareCache

extends CacheBase
implements Observer
java.lang.Object
   ↳ com.microstrategy.utils.cache.CacheBase
     ↳ com.microstrategy.utils.cache.CustomizationsAwareCache
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

This is an abstract base class for those Caches whose content can be affected by a customization. Typically, it is used by file-caches like the configuration files or resource bundles caches.

The constructor register this Cache as an observer of the Customizations class. When customization changes (for example, when customizations are added/removed at runtime), the Customization class will inform to all its observers about the change through the update(Observable, Object) method. If the observed object has changed, the cache will simply be cleared.

Summary

[Expand]
Inherited Constants
From class com.microstrategy.utils.cache.CacheBase
[Expand]
Inherited Fields
From class com.microstrategy.utils.cache.CacheBase
Public Constructors
CustomizationsAwareCache(String cacheName, int timeOut, int refreshTime)
Base constructor, will register the Cache in the CacheRegistry and will add itself as an observer of the Customizations class.
Public Methods
void update(Observable o, Object arg)
When the observer changes, this method simply clears the cache.
[Expand]
Inherited Methods
From class com.microstrategy.utils.cache.CacheBase
From class java.lang.Object
From interface com.microstrategy.utils.cache.Cache
From interface java.util.Observer

Public Constructors

public CustomizationsAwareCache (String cacheName, int timeOut, int refreshTime)

Base constructor, will register the Cache in the CacheRegistry and will add itself as an observer of the Customizations class.

Parameters
cacheName The name (id) of the Cache.
timeOut Time (in seconds) after which the cache expires.
refreshTime Time (in seconds) before after which the cache needs to be refreshed.

Public Methods

public void update (Observable o, Object arg)

When the observer changes, this method simply clears the cache.