Class CacheItemAttributes


  • public class CacheItemAttributes
    extends java.lang.Object
    CacheItemAttributes contains the information about the cache item.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getAbsoluteExpiration()
      Gets absolute Expiration for the object.You can add an item to the cache with absolute expiration by specifying the exact date and time at which the item should be invalidated.
      CacheDependency getDependency()
      The dependency/dependencies for the item.
      void setAbsoluteExpiration​(java.util.Date _absoluteExpiration)
      Sets absolute Expiration for the object.You can add an item to the cache with absolute expiration by specifying the exact date and time at which the item should be invalidated.
      void setDependency​(CacheDependency _d)
      The dependency/dependencies for the item.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheItemAttributes

        public CacheItemAttributes()
    • Method Detail

      • getAbsoluteExpiration

        public java.util.Date getAbsoluteExpiration()
        Gets absolute Expiration for the object.You can add an item to the cache with absolute expiration by specifying the exact date and time at which the item should be invalidated. When this time is elapsed, the item will be removed from the cache.
        Returns:
        The absolute expiration associated with the cache item attributes.
      • setAbsoluteExpiration

        public void setAbsoluteExpiration​(java.util.Date _absoluteExpiration)
        Sets absolute Expiration for the object.You can add an item to the cache with absolute expiration by specifying the exact date and time at which the item should be invalidated. When this time is elapsed, the item will be removed from the cache.
        Parameters:
        _absoluteExpiration - The absolute expiration to be associated with the cache item attributes.
      • getDependency

        public CacheDependency getDependency()
        The dependency/dependencies for the item. When any dependency changes, the object becomes invalid and is removed from the cache. If there are no dependencies , this property contains a null.
        Returns:
        CacheDependency associated with cache item attributes.
      • setDependency

        public void setDependency​(CacheDependency _d)
        The dependency/dependencies for the item. When any dependency changes, the object becomes invalid and is removed from the cache. If there are no dependencies , this property contains a null.
        Parameters:
        _d - CacheDependency to be associated with cache item attributes.