public interface Waitable<T,P>
| Modifier and Type | Method and Description |
|---|---|
T |
waitUntilCondition(Predicate<P> condition,
long amount,
TimeUnit timeUnit)
Wait for the given condition to be true.
|
T |
waitUntilReady(long amount,
TimeUnit timeUnit)
For resources other than Node, Deployment, ReplicaSet, StatefulSet, Pod, ReplicationController, and DeploymentConfig
readiness is simply an existence check.
|
T waitUntilReady(long amount, TimeUnit timeUnit)
waitUntilCondition(Predicate, long, TimeUnit) when dealing with
more complex situations or other types.T waitUntilCondition(Predicate<P> condition, long amount, TimeUnit timeUnit)
The processing of events will be in the IO thread, blocking operations should be avoided.
If nothing exists, the condition will be tested with a null value.
condition - amount - timeUnit - Copyright © 2015–2023 Red Hat. All rights reserved.