public class MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier<T>
extends com.google.common.collect.ForwardingObject
implements com.google.common.base.Supplier<T>
LoadingCache
to deal with concurrency issues related to the supplier.Modifier and Type | Class and Description |
---|---|
static class |
MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.ValueLoadedEvent<V> |
Modifier and Type | Method and Description |
---|---|
static <T> MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier<T> |
create(AtomicReference<AuthorizationException> authException,
com.google.common.base.Supplier<T> delegate,
long duration,
TimeUnit unit) |
static <T> MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier<T> |
create(AtomicReference<AuthorizationException> authException,
com.google.common.base.Supplier<T> delegate,
long duration,
TimeUnit unit,
ValueLoadedCallback<T> valueLoadedCallback)
Creates a memoized supplier that calls the given callback each time values are loaded.
|
protected com.google.common.base.Supplier<T> |
delegate() |
T |
get() |
String |
toString() |
public static <T> MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier<T> create(AtomicReference<AuthorizationException> authException, com.google.common.base.Supplier<T> delegate, long duration, TimeUnit unit)
public static <T> MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier<T> create(AtomicReference<AuthorizationException> authException, com.google.common.base.Supplier<T> delegate, long duration, TimeUnit unit, ValueLoadedCallback<T> valueLoadedCallback)
protected com.google.common.base.Supplier<T> delegate()
delegate
in class com.google.common.collect.ForwardingObject
public String toString()
toString
in class com.google.common.collect.ForwardingObject
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.