Package | Description |
---|---|
software.amazon.awssdk.utils.cache |
Modifier and Type | Method and Description |
---|---|
static <T> CachedSupplier.Builder<T> |
CachedSupplier.builder(Supplier<RefreshResult<T>> valueSupplier)
Retrieve a builder that can be used for creating a
CachedSupplier . |
CachedSupplier.Builder<T> |
CachedSupplier.Builder.clock(Clock clock)
Configure the clock used for this cached supplier.
|
CachedSupplier.Builder<T> |
CachedSupplier.Builder.prefetchStrategy(CachedSupplier.PrefetchStrategy prefetchStrategy)
Configure the way in which data in the cache should be pre-fetched when the data's
RefreshResult.prefetchTime()
arrives. |
CachedSupplier.Builder<T> |
CachedSupplier.Builder.staleValueBehavior(CachedSupplier.StaleValueBehavior staleValueBehavior)
Configure the way the cache should behave when a stale value is retrieved or when retrieving a value fails while the
cache is stale.
|
Copyright © 2022. All rights reserved.