RetryUtils with Java 8. How to retry block of codes when exception occurs with functional way?
Basic There are already many ways exist to retry logics when exception occurs. For example, you can use framework like @retry with Spring. I just want to make a simple util to retry logic with java 8 like below. RetryUtils @Slf4j public class RetryUtils { private static final int RETRY = 3; private static final long DELAY = 1000l; @FunctionalInterface public interface RunnableWithException { void run() throws Exception; } public static <V> V retry(Callable<V> callable,...