Class AbstractByPredicateCacheInvalidator
- java.lang.Object
-
- com.atlassian.bamboo.hibernate.invalidators.AbstractByPredicateCacheInvalidator
-
- All Implemented Interfaces:
ImmutablePlanCacheService.CacheInvalidator
public abstract class AbstractByPredicateCacheInvalidator extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractByPredicateCacheInvalidator(@NotNull String description)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected @NotNull Set<PlanKey>getAffectedPlanKeys(@NotNull com.google.common.cache.Cache<PlanKey,ImmutableChain> planKeyChainMap, @NotNull PlanCacheIndices planCacheIndices)voidgetChainsToInvalidateAndReindex(@NotNull ImmutablePlanCacheService immutablePlanCacheService, @NotNull com.google.common.cache.Cache<PlanKey,ImmutableChain> planKeyChainMap, @NotNull PlanCacheIndices planCacheIndices, @NotNull Set<PlanKey> chainsToInvalidate, @NotNull Set<PlanKey> chainsToReindex)Guidelines: if the entity for which invalidation is triggered is not in index, only invalidate.StringgetDescription()protected abstract Predicate<ImmutableChain>predicate()
-
-
-
Constructor Detail
-
AbstractByPredicateCacheInvalidator
public AbstractByPredicateCacheInvalidator(@NotNull @NotNull String description)
-
-
Method Detail
-
getAffectedPlanKeys
@NotNull protected @NotNull Set<PlanKey> getAffectedPlanKeys(@NotNull @NotNull com.google.common.cache.Cache<PlanKey,ImmutableChain> planKeyChainMap, @NotNull @NotNull PlanCacheIndices planCacheIndices)
-
predicate
protected abstract Predicate<ImmutableChain> predicate()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceImmutablePlanCacheService.CacheInvalidator
-
getChainsToInvalidateAndReindex
public void getChainsToInvalidateAndReindex(@NotNull @NotNull ImmutablePlanCacheService immutablePlanCacheService, @NotNull @NotNull com.google.common.cache.Cache<PlanKey,ImmutableChain> planKeyChainMap, @NotNull @NotNull PlanCacheIndices planCacheIndices, @NotNull @NotNull Set<PlanKey> chainsToInvalidate, @NotNull @NotNull Set<PlanKey> chainsToReindex)Description copied from interface:ImmutablePlanCacheService.CacheInvalidatorGuidelines: if the entity for which invalidation is triggered is not in index, only invalidate. If it is in index and you're deleting it, invalidate and reindex. If it is in the index and you're updating it, only reindex.- Specified by:
getChainsToInvalidateAndReindexin interfaceImmutablePlanCacheService.CacheInvalidator
-
-