public interface DashboardCachingManager
| Modifier and Type | Method and Description |
|---|---|
List<ImmutableChain> |
getAllChains()
Returns all chains (including chain branches) in the system
|
List<ImmutableTopLevelPlan> |
getAllTopLevelPlans()
Returns all top level plans (i.e.
|
com.google.common.collect.ImmutableCollection<ImmutableChain> |
getAllTopLevelPlansUnsorted() |
List<ImmutableTopLevelPlan> |
getAllTopLevelPlansUpdatedSince(long systemTime)
Returns all builds since a given time
|
ImmutableChain |
getPlan(PlanKey planKey)
Returns the cached plan for a given planKey
|
void |
initCaches()
Initialises the caches
|
void |
removePlanFromCache(PlanKey planKey)
Removes the plan from the cache
|
void |
removePlansFromCache(Iterable<PlanKey> planKeys) |
void |
resetCache()
Clears the cache
|
void |
updatePlanCache(Collection<PlanKey> planKeys)
Refetches the passed plan keys from the database
|
void |
updatePlanCache(PlanKey planKey)
Refetches the passed plan key from the database
|
@NotNull List<ImmutableTopLevelPlan> getAllTopLevelPlans()
com.google.common.collect.ImmutableCollection<ImmutableChain> getAllTopLevelPlansUnsorted()
@NotNull List<ImmutableChain> getAllChains()
@Nullable ImmutableChain getPlan(@NotNull PlanKey planKey)
planKey - List<ImmutableTopLevelPlan> getAllTopLevelPlansUpdatedSince(long systemTime)
systemTime - void initCaches()
void resetCache()
void updatePlanCache(@NotNull
PlanKey planKey)
planKey - Key of the plan to be updatedvoid updatePlanCache(@NotNull
Collection<PlanKey> planKeys)
planKeys - Keys of the plan to be updatedvoid removePlanFromCache(@NotNull
PlanKey planKey)
planKey - Key of the plan to be removed from cacheCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.