Class SessionCacheBase

    • 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: CacheBase
        Overridable. Extracts from the hint object the key that shall be used to identify the cached object.
        Specified by:
        getKey in class CacheBase
        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: CacheBase
        Overridable. Returns true if the hint allows updates. Default implementation always returns true.
        Overrides:
        canUpdate in class CacheBase
        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: Cache
        This 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:
        onHintClose in interface Cache
        Overrides:
        onHintClose in class CacheBase
        Parameters:
        hint - the hint object.