Package com.atlassian.confluence.cache
Class InvalidatableCacheLoader<K,V>
java.lang.Object
com.atlassian.confluence.cache.InvalidatableCacheLoader<K,V>
- All Implemented Interfaces:
com.atlassian.cache.CacheLoader<K,
V>
@Internal
@Deprecated(since="9.3",
forRemoval=true)
public final class InvalidatableCacheLoader<K,V>
extends Object
implements com.atlassian.cache.CacheLoader<K,V>
Deprecated, for removal: This API element is subject to removal in a future version.
since 9.3
CacheLoader that allows values to be invalidated during creation.
This class is a workaround for https://jira.atlassian.com/browse/CACHE-106.
- Since:
- 5.7
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> InvalidatableCacheLoader<K, V> createLocal
(com.atlassian.cache.CacheLoader<K, V> delegate) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new InvalidatableCacheLoader that only invalidates values being created on the local JVM.void
Deprecated, for removal: This API element is subject to removal in a future version.Invalidates all values that are in the process of being loaded and forces them to be loaded again immediately.@NonNull V
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
createLocal
public static <K,V> InvalidatableCacheLoader<K,V> createLocal(com.atlassian.cache.CacheLoader<K, V> delegate) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new InvalidatableCacheLoader that only invalidates values being created on the local JVM.- Parameters:
delegate
- CacheLoader to use for creating the values- Returns:
- InvalidatableCacheLoader that only invalidates values being created on the local JVM
-
load
Deprecated, for removal: This API element is subject to removal in a future version. -
invalidateAll
public void invalidateAll()Deprecated, for removal: This API element is subject to removal in a future version.Invalidates all values that are in the process of being loaded and forces them to be loaded again immediately.
-