Class CacheItemAttributes


  • public class CacheItemAttributes
    extends java.lang.Object
    The CacheItemAttributes contains the information about the ache attributes.
    • 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 the 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. If there are no dependencies, this property contains a null reference.
        Returns:
        CacheDependency associated with cache item attributes.
      • setDependency

        public void setDependency​(CacheDependency _d)
        The dependency/dependencies for the item. If there are no dependencies, this property contains a null reference.
        Parameters:
        _d - CacheDependency to be associated with cache item attributes.