Interface InvalidationEventHub

    • Method Detail

      • addInvalidationCallback

        void addInvalidationCallback​(java.lang.Runnable callback)
        Adds a callback that is invoked when an underlying tracked resource has changed. Does nothing in production mode.
        Since:
        5.4
      • clearOnInvalidation

        void clearOnInvalidation​(java.util.Map<?,​?> map)
        Adds a callback that clears the map.
        Since:
        5.4
      • addInvalidationCallback

        @IncompatibleChange(release="5.8.3",
                            details="Added method")
        void addInvalidationCallback​(java.util.function.Function<java.util.List<java.lang.String>,​java.util.List<java.lang.String>> function)
        Adds a callback, as a function that receives a list of strings and also returns a list of strings, that is invoked when one or more listed underlying tracked resource have changed. An empty list should be considered as all resources being changed and any caches needing to be cleared. The return value of the function should be a non-null, but possibly empty, list of other resources that also need to be invalidated in a recursive fashion. This method does nothing in production mode.
        Since:
        5.8.3