Class BulkExtensibleDependency

  • All Implemented Interfaces:

    public abstract class BulkExtensibleDependency
    extends ExtensibleDependency
    BulkExtensibleDependency is an abstract class extended if Custom dependency is required and needs to be evaluated in Bulk.
    See Also:
    Serialized Form
    • Constructor Detail

      • BulkExtensibleDependency

        public BulkExtensibleDependency()
    • Method Detail

      • evaluateBulk

        public abstract void evaluateBulk​(java.lang.Iterable<BulkExtensibleDependency> dependencies)
                                   throws java.lang.Exception
        EvaluateBulk method is evaluate the dependency and invoke Expire() if change has occured.
        dependencies - The dependencies that are evaluated.
      • expire

        public void expire()
        Invoke this method for bulk dependency in evaluateBulk to trigger dependency change.
      • hasChanged

        public final boolean hasChanged()
        In evaluateBulk if the dependency has triggered and want to expire item invoke the expire() for the dependency.we use this method to expire item in the cache.
        Specified by:
        hasChanged in class ExtensibleDependency
        A boolean value indicating whether dependency has changed or not.