Package io.fabric8.kubernetes.client.dsl
Interface Waitable<T,P>
-
- All Known Subinterfaces:
AnyNamespaceOperation<T,L,R>,CertificateSigningRequestResource<T>,ExtensibleResource<T>,FilterWatchListDeletable<T,L,R>,ListVisitFromServerGetDeleteRecreateWaitApplicable<T>,MixedOperation<T,L,R>,NamespaceableResource<T>,NamespaceListVisitFromServerGetDeleteRecreateWaitApplicable<T>,NonNamespaceOperation<T,L,R>,ParameterMixedOperation<T,L,R>,PodResource,Resource<T>,RollableScalableResource<T>,ScalableResource<T>,ServiceAccountResource,ServiceResource<T>,V1beta1CertificateSigningRequestResource<T>,WatchAndWaitable<T>
- All Known Implementing Classes:
ExtensibleResourceAdapter,ResourceAdapter
public interface Waitable<T,P>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TwaitUntilCondition(Predicate<P> condition, long amount, TimeUnit timeUnit)Wait for the given condition to be true.TwaitUntilReady(long amount, TimeUnit timeUnit)For resources other than Node, Deployment, ReplicaSet, StatefulSet, Pod, ReplicationController, and DeploymentConfig readiness is simply an existence check.
-
-
-
Method Detail
-
waitUntilReady
T waitUntilReady(long amount, TimeUnit timeUnit)
For resources other than Node, Deployment, ReplicaSet, StatefulSet, Pod, ReplicationController, and DeploymentConfig readiness is simply an existence check.
Consider using the more generalwaitUntilCondition(Predicate, long, TimeUnit)when dealing with more complex situations or other types.
-
waitUntilCondition
T waitUntilCondition(Predicate<P> condition, long amount, TimeUnit timeUnit)
Wait for the given condition to be true.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.
- Parameters:
condition-amount-timeUnit-- Returns:
- the result that passes the given condition
-
-