Interface CacheInvalidationNotificationImmediateSender
-
public interface CacheInvalidationNotificationImmediateSenderSend cache invalidation events via supporting message producer components.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsendCacheInvalidation(TrackableRepository<? extends Trackable> repository, Trackable entity)Send a remote cache invalidation message to all concerned microservices.voidsendCacheRegionInvalidation(Class<?> projectionType)Send a remote cache invalidation message to all concerned microservices.
-
-
-
Method Detail
-
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 entityentity- 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.
-
-