Class InvalidationEventHubImpl

    • Constructor Summary

      Modifier Constructor Description
      protected InvalidationEventHubImpl​(boolean productionMode, org.slf4j.Logger logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addInvalidationCallback​(java.lang.Runnable callback)
      Adds a callback that is invoked when an underlying tracked resource has changed.
      void addInvalidationCallback​(java.util.function.Function<java.util.List<java.lang.String>,​java.util.List<java.lang.String>> callback)
      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.
      void addInvalidationListener​(InvalidationListener listener)
      Adds a listener, who needs to know when an underlying resource of a given category has changed (so that the receiver may discard any cached data that may have been invalidated).
      void clearOnInvalidation​(java.util.Map<?,​?> map)
      Adds a callback that clears the map.
      protected void fireInvalidationEvent()
      Notifies all listeners/callbacks.
      void fireInvalidationEvent​(java.util.List<java.lang.String> resources)
      Notifies all listeners/callbacks.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait