Package software.amazon.awssdk.utils.cache
-
Interface Summary Interface Description CachedSupplier.PrefetchStrategy The way in which the cache should be pre-fetched when the data'sRefreshResult.prefetchTime()arrives. -
Class Summary Class Description CachedSupplier<T> A wrapper for aSupplierthat 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.CachedSupplier.Builder<T> A Builder forCachedSupplier, created byCachedSupplier.builder(Supplier).NonBlocking ACachedSupplier.PrefetchStrategythat will run a single thread in the background to update the value.OneCallerBlocks ACachedSupplier.PrefetchStrategythat will have one caller at a time block to update the value.RefreshResult<T> A wrapper for the value returned by theSupplierunderlying aCachedSupplier.RefreshResult.Builder<T> A builder for aRefreshResult. -
Enum Summary Enum Description CachedSupplier.StaleValueBehavior 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.