Class Retry

java.lang.Object
cn.tzq0301.retry.Retry

public final class Retry extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    of(java.util.function.Function<Integer,Boolean> task, int times, java.time.Duration interval)
     
    static void
    of(java.util.function.Function<Integer,Boolean> task, int times, java.time.Duration interval, boolean useExponentialBackoff)
     
    static void
    of(java.util.function.Function<Integer,Boolean> task, int times, java.time.Duration interval, boolean useExponentialBackoff, boolean useJitter)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • of

      public static void of(java.util.function.Function<Integer,Boolean> task, int times, java.time.Duration interval)
    • of

      public static void of(java.util.function.Function<Integer,Boolean> task, int times, java.time.Duration interval, boolean useExponentialBackoff)
    • of

      public static void of(java.util.function.Function<Integer,Boolean> task, int times, java.time.Duration interval, boolean useExponentialBackoff, boolean useJitter)