Package org.onlab.util
Class RetryingFunction<U,V>
- java.lang.Object
-
- org.onlab.util.RetryingFunction<U,V>
-
- Type Parameters:
U
- input typeV
- 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)
-