Class OneCallerBlocks
java.lang.Object
software.amazon.awssdk.utils.cache.OneCallerBlocks
- All Implemented Interfaces:
AutoCloseable,CachedSupplier.PrefetchStrategy,SdkAutoCloseable
@SdkProtectedApi
public class OneCallerBlocks
extends Object
implements CachedSupplier.PrefetchStrategy
A
CachedSupplier.PrefetchStrategy that will have one caller at a time block to update the value.
Multiple calls to prefetch(Runnable) will result in only one caller actually performing the update, with the others
immediately returning.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.cache.CachedSupplier.PrefetchStrategy
close, fetch, initializeCachedSupplier
-
Constructor Details
-
OneCallerBlocks
public OneCallerBlocks()
-
-
Method Details
-
prefetch
Description copied from interface:CachedSupplier.PrefetchStrategyExecute the provided value updater to update the cache. The specific implementation defines how this is invoked.- Specified by:
prefetchin interfaceCachedSupplier.PrefetchStrategy
-