Interface CacheInvalidationNotificationImmediateSender


public interface CacheInvalidationNotificationImmediateSender
Send cache invalidation events via supporting message producer components.
  • Method Details

    • sendCacheInvalidation

      void sendCacheInvalidation(TrackableRepository<? extends Trackable> repository, Trackable entity)
      Send a remote cache invalidation message to all concerned microservices. The invalidation will target a specific entity and the listener will groom any related caches in response to this notification.
      Parameters:
      repository - The repository responsible for persistence for the entity
      entity - The entity instance whose identifying information should be sent in the cache invalidation message
    • sendCacheRegionInvalidation

      void sendCacheRegionInvalidation(Class<?> projectionType)
      Send a remote cache invalidation message to all concerned microservices. The invalidation will target all members of caches concerned with the specified projection type.
      Parameters:
      projectionType - The projection domain type for whom related caches should be entirely invalidated.