com.atlassian.bamboo.plan.cache
Class ImmutablePlanCacheServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.cache.ImmutablePlanCacheServiceImpl
All Implemented Interfaces:
ImmutablePlanCacheService

public class ImmutablePlanCacheServiceImpl
extends java.lang.Object
implements ImmutablePlanCacheService

Since:
v3.4

Constructor Summary
ImmutablePlanCacheServiceImpl(ImmutablePlanManager immutablePlanManager, ChainBranchManager chainBranchManager)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutablePlanCacheServiceImpl

public ImmutablePlanCacheServiceImpl(@NotNull
                                     ImmutablePlanManager immutablePlanManager,
                                     @NotNull
                                     ChainBranchManager chainBranchManager)
Method Detail

getImmutablePlanByKey

@Nullable
public ImmutableChain getImmutablePlanByKey(@NotNull
                                                     PlanKey planKey)
Description copied from interface: ImmutablePlanCacheService
Returns a plan if one exists with the key

Specified by:
getImmutablePlanByKey in interface ImmutablePlanCacheService
Returns:

reset

public void reset(@NotNull
                  PlanKey planKey)
Description copied from interface: ImmutablePlanCacheService
Removes the cached reference for the passed plan

Specified by:
reset in interface ImmutablePlanCacheService

reset

public void reset(long planId)
Description copied from interface: ImmutablePlanCacheService
Removes the cached reference for the passed plan

Specified by:
reset in interface ImmutablePlanCacheService

cascadeReset

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

Specified by:
cascadeReset in interface ImmutablePlanCacheService

cascadeReset

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

Specified by:
cascadeReset in interface ImmutablePlanCacheService

resetAll

public void resetAll()
Description copied from interface: ImmutablePlanCacheService
Nukes the cache

Specified by:
resetAll in interface ImmutablePlanCacheService

getCacheStats

public BambooCacheStats getCacheStats()
Specified by:
getCacheStats in interface ImmutablePlanCacheService


Copyright © 2012 Atlassian. All Rights Reserved.