kymr blog
  • Blog
Main
  • Share to Facebook
  • Share to Twitter
  • Share to Google+

functional

All Posts in functional

  • 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,...

    functional java

    yongmaroo.kim's profile image

    yongmaroo.kim

    2017-01-09 02:00

  • github
  • facebook
  • twitter
  • rss
  • Linked In
  • Github