com.atlassian.bamboo.util
Class CacheAwareness

java.lang.Object
  extended by com.atlassian.bamboo.util.CacheAwareness

public final class CacheAwareness
extends java.lang.Object


Nested Class Summary
static class CacheAwareness.CacheInfo
           
 
Field Summary
static CacheAwareness.CacheInfo ANY
           
static CacheAwareness.CacheInfo BRANCH_DETECTION
           
static CacheAwareness.CacheInfo CHANGE_DETECTION
           
 
Method Summary
static CacheAwareness.CacheInfo cacheInfo(java.lang.String cachedDataType)
           
static java.lang.Iterable<CacheAwareness.CacheInfo> getDisabledCaches()
           
static
<E1 extends java.lang.Exception,E2 extends java.lang.Exception,E3 extends java.lang.Exception>
void
whileReadingThroughCaches(BambooRunnables.ThrowingX<E1,E2,E3> runnable, CacheAwareness.CacheInfo... cacheInfo)
          executes the supplied runnable with the listed caches disabled.
static
<E1 extends java.lang.Exception,E2 extends java.lang.Exception,E3 extends java.lang.Exception>
void
whileReadingThroughCaches(BambooRunnables.ThrowingX<E1,E2,E3> runnable, java.lang.Iterable<CacheAwareness.CacheInfo> cacheInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGE_DETECTION

public static final CacheAwareness.CacheInfo CHANGE_DETECTION

BRANCH_DETECTION

public static final CacheAwareness.CacheInfo BRANCH_DETECTION

ANY

public static final CacheAwareness.CacheInfo ANY
Method Detail

cacheInfo

public static CacheAwareness.CacheInfo cacheInfo(java.lang.String cachedDataType)

whileReadingThroughCaches

public static <E1 extends java.lang.Exception,E2 extends java.lang.Exception,E3 extends java.lang.Exception> void whileReadingThroughCaches(BambooRunnables.ThrowingX<E1,E2,E3> runnable,
                                                                                                                                            @Nullable
                                                                                                                                            CacheAwareness.CacheInfo... cacheInfo)
                                      throws E2 extends java.lang.Exception,
                                             E1 extends java.lang.Exception,
                                             E3 extends java.lang.Exception
executes the supplied runnable with the listed caches disabled.

Throws:
E2 extends java.lang.Exception

whileReadingThroughCaches

public static <E1 extends java.lang.Exception,E2 extends java.lang.Exception,E3 extends java.lang.Exception> void whileReadingThroughCaches(BambooRunnables.ThrowingX<E1,E2,E3> runnable,
                                                                                                                                            java.lang.Iterable<CacheAwareness.CacheInfo> cacheInfo)
                                      throws E2 extends java.lang.Exception,
                                             E1 extends java.lang.Exception,
                                             E3 extends java.lang.Exception
Throws:
E2 extends java.lang.Exception

getDisabledCaches

public static java.lang.Iterable<CacheAwareness.CacheInfo> getDisabledCaches()


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.