|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.util.Predicates2
public class Predicates2
| Field Summary | |
|---|---|
static long |
DEFAULT_MAX_PERIOD
|
static long |
DEFAULT_PERIOD
|
| Constructor Summary | |
|---|---|
Predicates2()
|
|
| Method Summary | ||
|---|---|---|
static
|
retry(com.google.common.base.Predicate<T> findOrBreak,
long timeout)
like retry(Predicate, long, long, long, TimeUnit) where unit is in milliseconds, period
is 50ms, and maxPeriod 1s. |
|
static
|
retry(com.google.common.base.Predicate<T> findOrBreak,
long timeout,
long period,
long maxPeriod)
like retry(Predicate, long, long, long, TimeUnit) where unit is in milliseconds |
|
static
|
retry(com.google.common.base.Predicate<T> findOrBreak,
long timeout,
long period,
long maxPeriod,
TimeUnit unit)
Retries a predicate until it is met, a timeout occurs, or an exception occurs. |
|
static
|
retry(com.google.common.base.Predicate<T> findOrBreak,
long timeout,
long period,
TimeUnit unit)
like retry(Predicate, long, long, long, TimeUnit) where maxPeriod is 10x period |
|
static com.google.common.base.Predicate<String> |
startsWith(String prefix)
Returns a predicate that evaluates to true if the String being tested starts with a prefix. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_PERIOD
org.jclouds.compute.config.ComputeServiceProperties#POLL_INITIAL_PERIOD,
Constant Field Valuespublic static final long DEFAULT_MAX_PERIOD
org.jclouds.compute.config.ComputeServiceProperties#POLL_MAX_PERIOD,
Constant Field Values| Constructor Detail |
|---|
public Predicates2()
| Method Detail |
|---|
public static com.google.common.base.Predicate<String> startsWith(String prefix)
public static <T> com.google.common.base.Predicate<T> retry(com.google.common.base.Predicate<T> findOrBreak,
long timeout,
long period,
long maxPeriod,
TimeUnit unit)
public static <T> com.google.common.base.Predicate<T> retry(com.google.common.base.Predicate<T> findOrBreak,
long timeout,
long period,
TimeUnit unit)
retry(Predicate, long, long, long, TimeUnit) where maxPeriod is 10x period
public static <T> com.google.common.base.Predicate<T> retry(com.google.common.base.Predicate<T> findOrBreak,
long timeout,
long period,
long maxPeriod)
retry(Predicate, long, long, long, TimeUnit) where unit is in milliseconds
public static <T> com.google.common.base.Predicate<T> retry(com.google.common.base.Predicate<T> findOrBreak,
long timeout)
retry(Predicate, long, long, long, TimeUnit) where unit is in milliseconds, period
is 50ms, and maxPeriod 1s.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||