Class VCacheCasUtils
java.lang.Object
com.atlassian.confluence.impl.vcache.VCacheCasUtils
This class was copied from the atlassian-util-vcache library,
The methods are direct copies from this library at version 1.1.3
- Since:
- 7.0.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> io.atlassian.fugue.Either<Throwable,
V> atomicReplace
(com.atlassian.vcache.DirectExternalCache<V> vcache, String key, Function<V, V> updater, Supplier<V> defaultSupplier, Duration maxDuration) static <T> io.atlassian.fugue.Either<Throwable,
T> internalAtomicLoop
(Duration maxDuration, Supplier<Optional<io.atlassian.fugue.Either<Throwable, T>>> cacheOperation)
-
Constructor Details
-
VCacheCasUtils
public VCacheCasUtils()
-
-
Method Details
-
atomicReplace
-
internalAtomicLoop
-