Package com.microstrategy.web.objects
Class ServerCacheBase
- java.lang.Object
-
- com.microstrategy.utils.cache.CacheBase
-
- com.microstrategy.web.objects.ServerCacheBase
-
- All Implemented Interfaces:
Cache
- Direct Known Subclasses:
ServerDefBypassAclCache,ServerDefCache
public abstract class ServerCacheBase extends CacheBase
- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
-
Fields inherited from class com.microstrategy.utils.cache.CacheBase
alias, DEFAULT_FILE_REFRESH_TIME, DEFAULT_REFRESH_TIME, DEFAULT_STATISTIC_TIME, DEFAULT_SYS_TIMEOUT, DEFAULT_USER_TIMEOUT, NO_KEY, NO_REFRESH, NO_STATISTIC, NO_TIMEOUT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServerCacheBase(java.lang.String pName)protectedServerCacheBase(java.lang.String pName, boolean useSoftReferences, int pTimeout, int pRefreshTime)protectedServerCacheBase(java.lang.String pName, boolean useSoftReferences, int pTimeout, int pRefreshTime, java.lang.String alias)protectedServerCacheBase(java.lang.String pName, java.lang.String alias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectgetKey(CacheHint hint)Overridable.protected voidstore(CacheHint hint, java.lang.Object ob)Overridable.protected voidstore(WebIServerSession session, java.lang.Object ob)-
Methods inherited from class com.microstrategy.utils.cache.CacheBase
canUpdate, clear, close, configure, contains, delete, get, getName, getRefreshTime, getStatisticTime, getTimeout, getWithoutRefresh, load, logStatistic, onHintClose, onTimer, put, refresh, reLoad, remove, save, setRefreshTime, setStatisticTime, setTimeout, size, unLoad
-
-
-
-
Constructor Detail
-
ServerCacheBase
protected ServerCacheBase(java.lang.String pName)
-
ServerCacheBase
protected ServerCacheBase(java.lang.String pName, java.lang.String alias)- Since:
- MicroStrategy Web 9.0.0
-
ServerCacheBase
protected ServerCacheBase(java.lang.String pName, boolean useSoftReferences, int pTimeout, int pRefreshTime, java.lang.String alias)- Since:
- MicroStrategy Web 9.0.0
-
ServerCacheBase
protected ServerCacheBase(java.lang.String pName, boolean useSoftReferences, int pTimeout, int pRefreshTime)
-
-
Method Detail
-
getKey
protected java.lang.Object getKey(CacheHint hint) throws CacheException
Description copied from class:CacheBaseOverridable. Extracts from the hint object the key that shall be used to identify the cached object.- Specified by:
getKeyin classCacheBase- Parameters:
hint- the hint object.- Returns:
- the key
- Throws:
CacheException- if somethig gos wrong.
-
store
protected final void store(CacheHint hint, java.lang.Object ob) throws CacheException
Description copied from class:CacheBaseOverridable. Saves cached object in the persistent storage.- Overrides:
storein classCacheBase- Parameters:
hint- the hint object.ob- the object to save.- Throws:
CacheException- if somethig gos wrong.- Since:
- MicroStrategy Web 8.0.1
-
store
protected void store(WebIServerSession session, java.lang.Object ob) throws CacheException
- Throws:
CacheException- Since:
- MicroStrategy Web 8.0.1
-
-