org.jclouds.predicates
Class RetryablePredicate<T>
java.lang.Object
org.jclouds.predicates.RetryablePredicate<T>
- All Implemented Interfaces:
- com.google.common.base.Predicate<T>
public class RetryablePredicate<T>
- extends Object
- implements com.google.common.base.Predicate<T>
Retries a condition until it is met or a timeout occurs.
- Author:
- Adrian Cole
Method Summary |
boolean |
apply(T input)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Predicate |
equals |
logger
protected Logger logger
RetryablePredicate
public RetryablePredicate(com.google.common.base.Predicate<T> predicate,
long maxWait,
long period,
long maxPeriod,
TimeUnit unit)
RetryablePredicate
public RetryablePredicate(com.google.common.base.Predicate<T> predicate,
long maxWait,
long period,
TimeUnit unit)
RetryablePredicate
public RetryablePredicate(com.google.common.base.Predicate<T> predicate,
long maxWait)
apply
public boolean apply(T input)
- Specified by:
apply
in interface com.google.common.base.Predicate<T>
Copyright © 2009-2011 jclouds. All Rights Reserved.