@PublicApi public final class CacheAwareness extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CacheAwareness.CacheInfo |
Modifier and Type | Field and Description |
---|---|
static CacheAwareness.CacheInfo |
ANY |
static CacheAwareness.CacheInfo |
BRANCH_DETECTION |
static CacheAwareness.CacheInfo |
CHANGE_DETECTION |
Modifier and Type | Method and Description |
---|---|
static CacheAwareness.CacheInfo |
cacheInfo(String cachedDataType) |
static Pair<Iterable<CacheAwareness.CacheInfo>,Long> |
getDisabledCachesTimestamp() |
static <V,E1 extends Exception,E2 extends Exception,E3 extends Exception> |
withValuesOlderThanTimestampReloaded(BambooCallables.ThrowingX<V,E1,E2,E3> callable,
long timestamp,
CacheAwareness.CacheInfo... disabledCaches)
Executes the supplied runnable with the listed caches invalidated, values reloaded if
value was previously cached before the timestamp
|
static <E1 extends Exception,E2 extends Exception,E3 extends Exception> |
withValuesOlderThanTimestampReloaded(BambooRunnables.ThrowingX<E1,E2,E3> runnable,
long timestamp,
CacheAwareness.CacheInfo... disabledCached)
Executes the supplied runnable with the listed caches invalidated, values reloaded if
value was previously cached before the timestamp
|
static <E1 extends Exception,E2 extends Exception,E3 extends Exception> |
withValuesOlderThanTimestampReloaded(BambooRunnables.ThrowingX<E1,E2,E3> runnable,
long timestamp,
Iterable<CacheAwareness.CacheInfo> disabledCaches)
Executes the supplied runnable with the listed caches invalidated, values reloaded if
value was previously cached before the timestamp
|
public static final CacheAwareness.CacheInfo CHANGE_DETECTION
public static final CacheAwareness.CacheInfo BRANCH_DETECTION
public static final CacheAwareness.CacheInfo ANY
public static CacheAwareness.CacheInfo cacheInfo(String cachedDataType)
public static <E1 extends Exception,E2 extends Exception,E3 extends Exception> void withValuesOlderThanTimestampReloaded(BambooRunnables.ThrowingX<E1,E2,E3> runnable, long timestamp, @Nullable CacheAwareness.CacheInfo... disabledCached) throws E2 extends Exception, E1 extends Exception, E3 extends Exception
timestamp
- denotes the time of the request, typically System.currentTimeMilis().
disabledCaches
- caches to be affected within the runnableE2 extends Exception
public static <V,E1 extends Exception,E2 extends Exception,E3 extends Exception> V withValuesOlderThanTimestampReloaded(BambooCallables.ThrowingX<V,E1,E2,E3> callable, long timestamp, @Nullable CacheAwareness.CacheInfo... disabledCaches) throws E2 extends Exception, E1 extends Exception, E3 extends Exception
timestamp
- denotes the time of the request, typically System.currentTimeMilis().
disabledCaches
- caches to be affected within the runnableE2 extends Exception
public static <E1 extends Exception,E2 extends Exception,E3 extends Exception> void withValuesOlderThanTimestampReloaded(BambooRunnables.ThrowingX<E1,E2,E3> runnable, long timestamp, Iterable<CacheAwareness.CacheInfo> disabledCaches) throws E2 extends Exception, E1 extends Exception, E3 extends Exception
timestamp
- denotes the time of the request, typically System.currentTimeMilis().
disabledCaches
- caches to be affected within the runnableE2 extends Exception
public static Pair<Iterable<CacheAwareness.CacheInfo>,Long> getDisabledCachesTimestamp()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.