Uses of Class
org.kiwiproject.retry.RetryResult
-
Packages that use RetryResult Package Description org.kiwiproject.retry -
-
Uses of RetryResult in org.kiwiproject.retry
Methods in org.kiwiproject.retry that return RetryResult Modifier and Type Method Description static <T> RetryResult<T>SimpleRetries. tryGetObjectCollectingErrors(int maxAttempts, long retryDelay, TimeUnit retryDelayUnit, Class<T> type, Supplier<T> supplier)Try to get an object, making up tomaxAttemptsattempts.static <T> RetryResult<T>SimpleRetries. tryGetObjectCollectingErrors(int maxAttempts, long retryDelay, TimeUnit retryDelayUnit, Supplier<T> supplier)Try to get an object, making up tomaxAttemptsattempts.static <T> RetryResult<T>SimpleRetries. tryGetObjectCollectingErrors(int maxAttempts, long retryDelay, TimeUnit retryDelayUnit, KiwiEnvironment environment, Class<T> type, Supplier<T> supplier)Try to get an object, making up tomaxAttemptsattempts.static <T> RetryResult<T>SimpleRetries. tryGetObjectCollectingErrors(int maxAttempts, long retryDelay, TimeUnit retryDelayUnit, KiwiEnvironment environment, String type, Supplier<T> supplier)Try to get an object, making up tomaxAttemptsattempts.static <T> RetryResult<T>SimpleRetries. tryGetObjectCollectingErrors(int maxAttempts, long retryDelay, TimeUnit retryDelayUnit, KiwiEnvironment environment, String type, org.slf4j.event.Level level, Supplier<T> supplier)Try to get an object, making up tomaxAttemptsattempts.<T> RetryResult<T>SimpleRetryer. tryGetObjectCollectingErrors(Class<T> type, Supplier<T> supplier)Try to get an object.<T> RetryResult<T>SimpleRetryer. tryGetObjectCollectingErrors(String type, Supplier<T> supplier)Try to get an object.<T> RetryResult<T>SimpleRetryer. tryGetObjectCollectingErrors(Supplier<T> supplier)Try to get an object.Methods in org.kiwiproject.retry with parameters of type RetryResult Modifier and Type Method Description static <T> voidRetryResultLogger. logAllExceptions(RetryResult<T> result, org.slf4j.Logger logger)Log all exceptions contained in the result using the given logger.static <T> voidRetryResultLogger. logExceptionTypesAndLast(RetryResult<T> result, org.slf4j.Logger logger)Log the unique error types and the last exception contained in the result using the given logger.static <T> voidRetryResultLogger. logLastException(RetryResult<T> result, org.slf4j.Logger logger)Log only the last exception contained in the result using the given logger.static <T> voidRetryResultLogger. logSummary(RetryResult<T> result, org.slf4j.Logger logger, String actionDescription)Logs a high-level summary of the result.static <T> voidRetryResultLogger. logSummaryIfFailed(RetryResult<T> result, org.slf4j.Logger logger, Supplier<String> actionDescriptionSupplier)Logs a summary of the given result only if itfailed().static <T> voidRetryResultLogger. logSummaryIfHasErrorsOrMultipleAttempts(RetryResult<T> result, org.slf4j.Logger logger, Supplier<String> actionDescriptionSupplier)Logs a summary of the given result only if it has any errors or more than one attempt was made.
-