Class FixedDelayRetryPolicy

java.lang.Object
tech.ydb.yoj.util.retry.FixedDelayRetryPolicy
All Implemented Interfaces:
RetryPolicy

public class FixedDelayRetryPolicy extends Object implements RetryPolicy
  • Constructor Details

    • FixedDelayRetryPolicy

      public FixedDelayRetryPolicy()
  • Method Details

    • calcDuration

      public Duration calcDuration(int attempt)
      Specified by:
      calcDuration in interface RetryPolicy
      Parameters:
      attempt - failed attempt number, counting from 1
      Returns:
      recommended retry interval
    • isSameAs

      public boolean isSameAs(@Nullable RetryPolicy other)
      Specified by:
      isSameAs in interface RetryPolicy