Interface Waitable<T,​P>

    • 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 general waitUntilCondition(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