Package software.amazon.awssdk.utils.cache
package software.amazon.awssdk.utils.cache
-
ClassDescriptionA wrapper for a
Supplier
that applies certain caching rules to the retrieval of its value, including customizable pre-fetching behaviors for updating values as they get close to expiring so that not all threads have to block to update the value.A Builder forCachedSupplier
, created byCachedSupplier.builder(Supplier)
.The way in which the cache should be pre-fetched when the data'sRefreshResult.prefetchTime()
arrives.How the cached supplier should behave when a stale value is retrieved from the underlying supplier or the underlying supplier fails while the cached value is stale.ACachedSupplier.PrefetchStrategy
that will run a single thread in the background to update the value.ACachedSupplier.PrefetchStrategy
that will have one caller at a time block to update the value.A wrapper for the value returned by theSupplier
underlying aCachedSupplier
.A builder for aRefreshResult
.