Interface Waitable<T,​P>

    • Field Detail

      • DEFAULT_INITIAL_BACKOFF_MILLIS

        static final long DEFAULT_INITIAL_BACKOFF_MILLIS
        See Also:
        Constant Field Values
      • DEFAULT_BACKOFF_MULTIPLIER

        static final double DEFAULT_BACKOFF_MULTIPLIER
        See Also:
        Constant Field Values
    • Method Detail

      • withWaitRetryBackoff

        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.
        Parameters:
        initialBackoff - the value for the initial backoff on first error
        backoffUnit - the TimeUnit for the initial backoff value
        backoffMultiplier - what to multiply the backoff by on each subsequent error
        Returns:
        the waitable