com.atlassian.bamboo.plan.cache
Interface ImmutablePlanCacheService

All Known Implementing Classes:
ImmutablePlanCacheServiceImpl

public interface ImmutablePlanCacheService

An experimental API for getting immutable, weakly held, cached ImmutableChain. This Service does not check for permissions currently. Only works for Chain. In 3.4, only used for Dashboard Cache

Since:
v3.4

Method Summary
 void cascadeReset(long planId)
          Removes the cached reference for the passed plan and its children.
 void cascadeReset(PlanKey planKey)
          Removes the cached reference for the passed plan and its children.
 BambooCacheStats getCacheStats()
           
 ImmutableChain getImmutablePlanByKey(PlanKey planKey)
          Returns a plan if one exists with the key
 void reset(long planId)
          Removes the cached reference for the passed plan
 void reset(PlanKey planKey)
          Removes the cached reference for the passed plan
 void resetAll()
          Nukes the cache
 

Method Detail

getImmutablePlanByKey

@Nullable
ImmutableChain getImmutablePlanByKey(@NotNull
                                              PlanKey planKey)
Returns a plan if one exists with the key

Parameters:
planKey -
Returns:

reset

void reset(@NotNull
           PlanKey planKey)
Removes the cached reference for the passed plan

Parameters:
planKey -

reset

void reset(long planId)
Removes the cached reference for the passed plan

Parameters:
planKey -

cascadeReset

void cascadeReset(@NotNull
                  PlanKey planKey)
Removes the cached reference for the passed plan and its children. Currently only propagates reset from Chain to ChainBranch

Parameters:
planKey -

cascadeReset

void cascadeReset(long planId)
Removes the cached reference for the passed plan and its children. Currently only propagates reset from Chain to ChainBranch

Parameters:
planKey -

resetAll

void resetAll()
Nukes the cache


getCacheStats

BambooCacheStats getCacheStats()


Copyright © 2012 Atlassian. All Rights Reserved.