Class RandomNumberMap

  • All Implemented Interfaces:
    Cache

    public class RandomNumberMap
    extends CacheBase
    Used in ASP.Net environment only
    • 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.
      • load

        protected java.lang.Object load​(CacheHint hint)
                                 throws CacheException
        Description copied from class: CacheBase
        Overridable. Creates a new cached object instance and populates it with data from the persistent storage. In case the object not found in the persistent storage the implementation can return either null or a dummy object.
        Specified by:
        load in class CacheBase
        Parameters:
        hint - the hint object.
        Returns:
        the object or null.
        Throws:
        CacheException - if somethig gos wrong.
      • get

        public java.lang.String get​(java.lang.String key)
      • contains

        public boolean contains​(java.lang.String hint)
      • delete

        public void delete​(java.lang.String hint)
      • put

        public void put​(java.lang.String hint,
                        java.lang.Object ob)