public class RetryablePredicate<T> extends Object implements com.google.common.base.Predicate<T>
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,
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) |
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)
Copyright © 2009-2012 jclouds. All Rights Reserved.