Class RetryingFunction<U,​V>

  • Type Parameters:
    U - input type
    V - output type
    All Implemented Interfaces:
    java.util.function.Function<U,​V>

    public class RetryingFunction<U,​V>
    extends java.lang.Object
    implements java.util.function.Function<U,​V>
    Function that retries execution on failure.
    • Constructor Summary

      Constructors 
      Constructor Description
      RetryingFunction​(java.util.function.Function<U,​V> baseFunction, java.lang.Class<? extends java.lang.Throwable> exceptionClass, int maxRetries, int maxDelayBetweenRetries)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V apply​(U input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • RetryingFunction

        public RetryingFunction​(java.util.function.Function<U,​V> baseFunction,
                                java.lang.Class<? extends java.lang.Throwable> exceptionClass,
                                int maxRetries,
                                int maxDelayBetweenRetries)
    • Method Detail

      • apply

        public V apply​(U input)
        Specified by:
        apply in interface java.util.function.Function<U,​V>