public static final class RefreshResult.Builder<T> extends Object
RefreshResult.| Modifier and Type | Method and Description | 
|---|---|
RefreshResult<T> | 
build()
Build a  
RefreshResult using the values currently configured in this builder. | 
RefreshResult.Builder<T> | 
prefetchTime(Instant prefetchTime)
Specify the time at which a thread that calls  
CachedSupplier.get() should trigger a cache prefetch. | 
RefreshResult.Builder<T> | 
staleTime(Instant staleTime)
Specify the time at which the value in this cache is stale, and all calls to  
CachedSupplier.get() should block
 to try to update the value. | 
public RefreshResult.Builder<T> staleTime(Instant staleTime)
CachedSupplier.get() should block
 to try to update the value.
 If this isn't specified, all threads will never block to update the value.public RefreshResult.Builder<T> prefetchTime(Instant prefetchTime)
CachedSupplier.get() should trigger a cache prefetch. The
 exact behavior of a "prefetch" is defined when the cache is created with
 CachedSupplier.Builder.prefetchStrategy(CachedSupplier.PrefetchStrategy), and may either have one thread block
 to refresh the cache or have an asynchronous task reload the value in the background.
 If this isn't specified, the prefetch strategy will never be used and all threads will block to update the value when
 the staleTime(Instant) arrives.public RefreshResult<T> build()
RefreshResult using the values currently configured in this builder.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.