Class RetryingFunction<U,​V>

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

    public class RetryingFunction<U,​V>
    extends Object
    implements Function<U,​V>
    Function that retries execution on failure.
    • Constructor Detail

      • RetryingFunction

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

      • apply

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