Package com.hw.langchain.utils
Class Resilience4jRetryUtils
java.lang.Object
com.hw.langchain.utils.Resilience4jRetryUtils
- Author:
- HamaWhite
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
retryWithExponentialBackoff
(int maxRetries, Supplier<T> action) static <T> T
retryWithExponentialBackoff
(int maxRetries, Supplier<T> action, Duration initialInterval, double multiplier, Duration maxInterval)
-
Method Details
-
retryWithExponentialBackoff
-
retryWithExponentialBackoff
-