public interface Waitable<T,P>
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_BACKOFF_MULTIPLIER |
static long |
DEFAULT_INITIAL_BACKOFF_MILLIS |
| Modifier and Type | Method and Description |
|---|---|
T |
waitUntilCondition(Predicate<P> condition,
long amount,
TimeUnit timeUnit) |
T |
waitUntilReady(long amount,
TimeUnit timeUnit) |
Waitable<T,P> |
withWaitRetryBackoff(long initialBackoff,
TimeUnit backoffUnit,
double backoffMultiplier)
Configure the backoff strategy to use when waiting for conditions, in case the watcher encounters a retryable error.
|
static final long DEFAULT_INITIAL_BACKOFF_MILLIS
static final double DEFAULT_BACKOFF_MULTIPLIER
T waitUntilReady(long amount, TimeUnit timeUnit) throws InterruptedException
InterruptedExceptionT waitUntilCondition(Predicate<P> condition, long amount, TimeUnit timeUnit) throws InterruptedException
InterruptedExceptionWaitable<T,P> withWaitRetryBackoff(long initialBackoff, TimeUnit backoffUnit, double backoffMultiplier)
initialBackoff - the value for the initial backoff on first errorbackoffUnit - the TimeUnit for the initial backoff valuebackoffMultiplier - what to multiply the backoff by on each subsequent errorCopyright © 2015–2022 Red Hat. All rights reserved.