public abstract class AbstractByPredicateCacheInvalidator extends Object
Constructor and Description |
---|
AbstractByPredicateCacheInvalidator(String description) |
Modifier and Type | Method and Description |
---|---|
protected Set<PlanKey> |
getAffectedPlanKeys(com.google.common.cache.Cache<PlanKey,ImmutableChain> planKeyChainMap,
PlanCacheIndices planCacheIndices) |
void |
getChainsToInvalidateAndReindex(ImmutablePlanCacheService immutablePlanCacheService,
com.google.common.cache.Cache<PlanKey,ImmutableChain> planKeyChainMap,
PlanCacheIndices planCacheIndices,
Set<PlanKey> chainsToInvalidate,
Set<PlanKey> chainsToReindex)
Guidelines: if the entity for which invalidation is triggered is not in index, only invalidate.
|
String |
getDescription() |
protected abstract Predicate<ImmutableChain> |
predicate() |
public AbstractByPredicateCacheInvalidator(@NotNull String description)
@NotNull protected Set<PlanKey> getAffectedPlanKeys(@NotNull com.google.common.cache.Cache<PlanKey,ImmutableChain> planKeyChainMap, @NotNull PlanCacheIndices planCacheIndices)
protected abstract Predicate<ImmutableChain> predicate()
public String getDescription()
getDescription
in interface ImmutablePlanCacheService.CacheInvalidator
public void getChainsToInvalidateAndReindex(@NotNull ImmutablePlanCacheService immutablePlanCacheService, @NotNull com.google.common.cache.Cache<PlanKey,ImmutableChain> planKeyChainMap, @NotNull PlanCacheIndices planCacheIndices, @NotNull Set<PlanKey> chainsToInvalidate, @NotNull Set<PlanKey> chainsToReindex)
ImmutablePlanCacheService.CacheInvalidator
getChainsToInvalidateAndReindex
in interface ImmutablePlanCacheService.CacheInvalidator
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.