Package com.microstrategy.web.objects
Class SessionCacheBase
- java.lang.Object
-
- com.microstrategy.utils.cache.CacheBase
-
- com.microstrategy.web.objects.SessionCacheBase
-
- All Implemented Interfaces:
Cache
- Direct Known Subclasses:
DataServerConnectionInfoCache
public abstract class SessionCacheBase 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 protectedSessionCacheBase(java.lang.String pName)protectedSessionCacheBase(java.lang.String pName, boolean useSoftReferences)protectedSessionCacheBase(java.lang.String pName, boolean useSoftReferences, int timeout)protectedSessionCacheBase(java.lang.String pName, boolean useSoftReferences, int timeout, java.lang.String alias)protectedSessionCacheBase(java.lang.String pName, boolean useSoftReferences, java.lang.String alias)protectedSessionCacheBase(java.lang.String pName, java.lang.String alias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanLoadFromPersistentStore(CacheHint hint)Dictates whether load access to persistent storage is permitted.protected booleancanUpdate(CacheHint hint)Overridable.protected java.lang.ObjectgetKey(CacheHint hint)Overridable.voidonHintClose(CacheHint hint)This method is supposed to be called by the hint object when it is closed.-
Methods inherited from class com.microstrategy.utils.cache.CacheBase
clear, close, configure, contains, delete, get, getName, getRefreshTime, getStatisticTime, getTimeout, getWithoutRefresh, load, logStatistic, onTimer, put, refresh, reLoad, remove, save, setRefreshTime, setStatisticTime, setTimeout, size, store, unLoad
-
-
-
-
Constructor Detail
-
SessionCacheBase
protected SessionCacheBase(java.lang.String pName, boolean useSoftReferences, int timeout)- Since:
- MicroStrategy Web 9.0.0
-
SessionCacheBase
protected SessionCacheBase(java.lang.String pName, boolean useSoftReferences, int timeout, java.lang.String alias)- Since:
- MicroStrategy Web 9.0.0
-
SessionCacheBase
protected SessionCacheBase(java.lang.String pName, boolean useSoftReferences)- Since:
- MicroStrategy Web 8.0.1
-
SessionCacheBase
protected SessionCacheBase(java.lang.String pName, boolean useSoftReferences, java.lang.String alias)- Since:
- MicroStrategy Web 9.0.0
-
SessionCacheBase
protected SessionCacheBase(java.lang.String pName, java.lang.String alias)- Since:
- MicroStrategy Web 9.0.0
-
SessionCacheBase
protected SessionCacheBase(java.lang.String pName)
-
-
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.
-
canUpdate
protected boolean canUpdate(CacheHint hint) throws CacheException
Description copied from class:CacheBaseOverridable. Returns true if the hint allows updates. Default implementation always returns true.- Overrides:
canUpdatein classCacheBase- Parameters:
hint- the hint object.- Returns:
- true if the hint allows updates.
- Throws:
CacheException
-
canLoadFromPersistentStore
protected boolean canLoadFromPersistentStore(CacheHint hint) throws CacheException
Dictates whether load access to persistent storage is permitted.- Throws:
CacheException
-
onHintClose
public void onHintClose(CacheHint hint)
Description copied from interface:CacheThis method is supposed to be called by the hint object when it is closed. Cache implementations shall use this call to perform proper cache cleanup.- Specified by:
onHintClosein interfaceCache- Overrides:
onHintClosein classCacheBase- Parameters:
hint- the hint object.
-
-