Class RetryWithDelay

  • All Implemented Interfaces:
    io.reactivex.functions.Predicate<java.lang.Throwable>

    public class RetryWithDelay
    extends java.lang.Object
    implements io.reactivex.functions.Predicate<java.lang.Throwable>
    Retry with Delay and attempts limits
    • Constructor Summary

      Constructors 
      Constructor Description
      RetryWithDelay​(io.reactivex.functions.Predicate<? super java.lang.Throwable> predicate, long maxRetries, long retryDelayMillis)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(java.lang.Throwable throwable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetryWithDelay

        public RetryWithDelay​(io.reactivex.functions.Predicate<? super java.lang.Throwable> predicate,
                              long maxRetries,
                              long retryDelayMillis)
    • Method Detail

      • test

        public boolean test​(@Nonnull
                            java.lang.Throwable throwable)
                     throws java.lang.Exception
        Specified by:
        test in interface io.reactivex.functions.Predicate<java.lang.Throwable>
        Throws:
        java.lang.Exception