Package alluxio.retry

Interface RetryPolicy

    • Method Detail

      • getAttemptCount

        int getAttemptCount()
        How many retries have been performed. If no retries have been performed, 0 is returned.
        Returns:
        number of retries performed
      • attempt

        boolean attempt()
        Waits until it is time to perform the next retry, then returns. Returns false if no further retries should be performed. The first call to this method should never delay the caller, this allow users of the policy to use it in the context of a while-loop.
        Returns:
        whether another retry should be performed