|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.cache.InvalidatableCacheLoader<K,V>
@Internal public final class InvalidatableCacheLoader<K,V>
CacheLoader that allows values to be invalidated during creation. This class is a workaround for https://jira.atlassian.com/browse/CACHE-106.
| Method Summary | ||
|---|---|---|
static
|
createLocal(com.atlassian.cache.CacheLoader<K,V> delegate)
Creates a new InvalidatableCacheLoader that only invalidates values being created on the local JVM. |
|
void |
invalidateAll()
Invalidates all values that are in the process of being loaded and forces them to be loaded again immediately. |
|
V |
load(K key)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <K,V> InvalidatableCacheLoader<K,V> createLocal(com.atlassian.cache.CacheLoader<K,V> delegate)
delegate - CacheLoader to use for creating the values
@Nonnull public V load(K key)
load in interface com.atlassian.cache.CacheLoader<K,V>public void invalidateAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||