@Beta public class Retryables extends Object
| Constructor and Description | 
|---|
Retryables()  | 
| Modifier and Type | Method and Description | 
|---|---|
static <Input> void | 
assertEventually(com.google.common.base.Predicate<Input> predicate,
                Input input,
                long maxWaitMillis,
                String failureMessage)  | 
static <Input> boolean | 
retry(com.google.common.base.Predicate<Input> predicate,
     Input input,
     long maxWaitMillis)  | 
static <Input> boolean | 
retry(com.google.common.base.Predicate<Input> predicate,
     Input input,
     long maxWait,
     long period,
     TimeUnit unit)  | 
static <Input,Result>  | 
retryGettingResultOrFailing(PredicateWithResult<Input,Result> predicate,
                           Input input,
                           long maxWait,
                           long period,
                           TimeUnit unit,
                           String failureMessage)  | 
static <Input,Result>  | 
retryGettingResultOrFailing(PredicateWithResult<Input,Result> predicate,
                           Input input,
                           long maxWaitMillis,
                           String failureMessage)  | 
static <Input> boolean | 
retryNumTimes(com.google.common.base.Predicate<Input> predicate,
             Input input,
             int maxAttempts)  | 
static <Input> boolean | 
retryNumTimes(com.google.common.base.Predicate<Input> predicate,
             Input input,
             int maxAttempts,
             long period,
             long maxPeriod,
             TimeUnit unit)  | 
public static <Input> boolean retry(com.google.common.base.Predicate<Input> predicate,
                    Input input,
                    long maxWaitMillis)
public static <Input> boolean retry(com.google.common.base.Predicate<Input> predicate,
                    Input input,
                    long maxWait,
                    long period,
                    TimeUnit unit)
public static <Input> boolean retryNumTimes(com.google.common.base.Predicate<Input> predicate,
                            Input input,
                            int maxAttempts)
public static <Input> boolean retryNumTimes(com.google.common.base.Predicate<Input> predicate,
                            Input input,
                            int maxAttempts,
                            long period,
                            long maxPeriod,
                            TimeUnit unit)
public static <Input> void assertEventually(com.google.common.base.Predicate<Input> predicate,
                            Input input,
                            long maxWaitMillis,
                            String failureMessage)
public static <Input,Result> Result retryGettingResultOrFailing(PredicateWithResult<Input,Result> predicate, Input input, long maxWaitMillis, String failureMessage)
public static <Input,Result> Result retryGettingResultOrFailing(PredicateWithResult<Input,Result> predicate, Input input, long maxWait, long period, TimeUnit unit, String failureMessage)
Copyright © 2009-2013 jclouds. All Rights Reserved.