Class AggregateCacheDependency

  • All Implemented Interfaces:
    java.io.Serializable

    public final class AggregateCacheDependency
    extends CacheDependency
    Combines multiple dependencies between an item stored in an application's Cache object and an array of CacheDependency objects. This class cannot be inherited. The AggregateCacheDependency class monitors a collection of dependency objects so that when any of them changes, the cached item is automatically removed. The objects in the array can be
    See Also:
    objects,, objects or any combination of these., Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AggregateCacheDependency()
      Initializes a new instance of the AggregateCacheDependency class that wraps multiple This is the default constructor for the AggregateCacheDependency class.
    • Constructor Detail

      • AggregateCacheDependency

        public AggregateCacheDependency()
        Initializes a new instance of the AggregateCacheDependency class that wraps multiple This is the default constructor for the AggregateCacheDependency class.
    • Method Detail

      • add

        public void add​(CacheDependency... dependencies)
                 throws java.lang.IllegalArgumentException
        Adds an array of CacheDependency objects to the AggregateCacheDependency object.
        Parameters:
        dependencies - The array of CacheDependency objects to add.
        Throws:
        java.lang.IllegalArgumentException