Class Resilience4jRetryUtils

java.lang.Object
com.hw.langchain.utils.Resilience4jRetryUtils

public class Resilience4jRetryUtils extends Object
Author:
HamaWhite
  • Method Details

    • retryWithExponentialBackoff

      public static <T> T retryWithExponentialBackoff(int maxRetries, Supplier<T> action)
    • retryWithExponentialBackoff

      public static <T> T retryWithExponentialBackoff(int maxRetries, Supplier<T> action, Duration initialInterval, double multiplier, Duration maxInterval)