K - the key type of the cache loaderV - the value type of the cache loader@Beta public class BackoffExponentiallyAndRetryOnThrowableCacheLoader<K,V> extends ForwardingCacheLoader<K,V>
ForwardingCacheLoader.SimpleForwardingCacheLoader<K,V>| Constructor and Description | 
|---|
BackoffExponentiallyAndRetryOnThrowableCacheLoader(Class<? extends Throwable> retryableThrowable,
                                                  long periodMs,
                                                  long maxPeriodMs,
                                                  int maxTries,
                                                  com.google.common.cache.CacheLoader<K,V> loader)  | 
public BackoffExponentiallyAndRetryOnThrowableCacheLoader(Class<? extends Throwable> retryableThrowable, long periodMs, long maxPeriodMs, int maxTries, com.google.common.cache.CacheLoader<K,V> loader)
retryableThrowable - the exception which we can retryperiodMs - initial period, which exponentially increases with each try, specified in
           millisecondsmaxPeriodMs - maximum period duration, specified in millisecondsmaxTries - maximum amount of triesloader - the loader we are able to retryprotected com.google.common.cache.CacheLoader<K,V> delegate()
delegate in class ForwardingCacheLoader<K,V>public V load(K key) throws Exception
load in class ForwardingCacheLoader<K,V>Exceptionpublic com.google.common.util.concurrent.ListenableFuture<V> reload(K key, V oldValue) throws Exception
reload in class ForwardingCacheLoader<K,V>ExceptionCopyright © 2009-2013 jclouds. All Rights Reserved.