public class RetryablePredicate<T> extends Object implements com.google.common.base.Predicate<T>
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_PERIOD |
static long |
DEFAULT_PERIOD |
protected Logger |
logger |
Constructor and Description |
---|
RetryablePredicate(com.google.common.base.Predicate<T> predicate,
long maxWait) |
RetryablePredicate(com.google.common.base.Predicate<T> predicate,
long maxWait,
long period,
long maxPeriod) |
RetryablePredicate(com.google.common.base.Predicate<T> predicate,
long maxWait,
long period,
long maxPeriod,
TimeUnit unit) |
RetryablePredicate(com.google.common.base.Predicate<T> predicate,
long maxWait,
long period,
TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(T input) |
protected boolean |
atOrAfter(Date end) |
protected boolean |
before(Date end) |
protected long |
nextMaxInterval(long attempt,
Date end) |
public static final long DEFAULT_PERIOD
public static final long DEFAULT_MAX_PERIOD
protected Logger logger
public RetryablePredicate(com.google.common.base.Predicate<T> predicate, long maxWait, long period, long maxPeriod, TimeUnit unit)
public RetryablePredicate(com.google.common.base.Predicate<T> predicate, long maxWait, long period, TimeUnit unit)
public RetryablePredicate(com.google.common.base.Predicate<T> predicate, long maxWait, long period, long maxPeriod)
public RetryablePredicate(com.google.common.base.Predicate<T> predicate, long maxWait)
Copyright © 2009-2013 jclouds. All Rights Reserved.