public class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.github.resilience4j.retry.RetryConfig |
buildRetryConfig(Class<? extends Throwable>... errorClasses) |
static io.github.resilience4j.retry.RetryConfig |
buildRetryConfig(Predicate<Throwable> predicate) |
static String |
formatDurationAsTimespan(Duration duration) |
static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
static String |
getPackageVersion() |
static boolean |
isRetriableIOException(IOException ex) |
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public static String getPackageVersion()
public static boolean isRetriableIOException(IOException ex)
public static io.github.resilience4j.retry.RetryConfig buildRetryConfig(@Nullable
Class<? extends Throwable>... errorClasses)
Copyright © 2024. All rights reserved.