Class PlanBranchCacheIndexer
- java.lang.Object
-
- com.atlassian.bamboo.plan.cache.index.PlanBranchCacheIndexer
-
- All Implemented Interfaces:
PlanBranchCacheIndex
,PlanCacheIndexer
public class PlanBranchCacheIndexer extends Object implements PlanCacheIndexer, PlanBranchCacheIndex
-
-
Constructor Summary
Constructors Constructor Description PlanBranchCacheIndexer(ImmutablePlanCacheService immutablePlanCacheService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToIndex(@NotNull ImmutableChain chain)
Index plan.void
deindex(@NotNull PlanKey planKey)
void
deindexAll()
@NotNull com.google.common.collect.ImmutableSet<PlanBranchGist>
getBranchGists(PlanKey planKey)
@NotNull com.google.common.collect.ImmutableSet<PlanKey>
getBranchKeys(@NotNull PlanKey planKey)
void
index(@NotNull ImmutableChain chain)
Reindex plan.
-
-
-
Constructor Detail
-
PlanBranchCacheIndexer
public PlanBranchCacheIndexer(ImmutablePlanCacheService immutablePlanCacheService)
-
-
Method Detail
-
index
public void index(@NotNull @NotNull ImmutableChain chain)
Description copied from interface:PlanCacheIndexer
Reindex plan. Implementation might require cleaning up existing content of the index.- Specified by:
index
in interfacePlanCacheIndexer
-
addToIndex
public void addToIndex(@NotNull @NotNull ImmutableChain chain)
Description copied from interface:PlanCacheIndexer
Index plan. This method is used during initialisation. Implementation can assume that plan wasn't previously indexed.- Specified by:
addToIndex
in interfacePlanCacheIndexer
-
deindex
public void deindex(@NotNull @NotNull PlanKey planKey)
- Specified by:
deindex
in interfacePlanCacheIndexer
-
deindexAll
public void deindexAll()
- Specified by:
deindexAll
in interfacePlanCacheIndexer
-
getBranchKeys
@NotNull public @NotNull com.google.common.collect.ImmutableSet<PlanKey> getBranchKeys(@NotNull @NotNull PlanKey planKey)
- Specified by:
getBranchKeys
in interfacePlanBranchCacheIndex
-
getBranchGists
@NotNull public @NotNull com.google.common.collect.ImmutableSet<PlanBranchGist> getBranchGists(PlanKey planKey)
- Specified by:
getBranchGists
in interfacePlanBranchCacheIndex
-
-