Package run.halo.gradle.utils
Class RetryUtils
java.lang.Object
run.halo.gradle.utils.RetryUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidwithRetry(int maxTimes, long baseSleepMillis, RetryUtils.CallToRetry call) Retry the given call.
-
Constructor Details
-
RetryUtils
public RetryUtils()
-
-
Method Details
-
withRetry
Retry the given call. We use a functionbaseSleepMillis * Math.pow(retryTimes, 2)to calculate the sleep time
-