com.atlassian.bamboo.util
Class CacheAwareness
java.lang.Object
com.atlassian.bamboo.util.CacheAwareness
public final class CacheAwareness
- extends java.lang.Object
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 |
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
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.