Class CustomBackOff
- java.lang.Object
-
- io.smallrye.faulttolerance.core.retry.CustomBackOff
-
-
Constructor Summary
Constructors Constructor Description CustomBackOff(ToLongFunction<Throwable> strategy)
-
-
-
Constructor Detail
-
CustomBackOff
public CustomBackOff(ToLongFunction<Throwable> strategy)
-
-
Method Detail
-
getInMillis
public long getInMillis(Throwable cause)
- Specified by:
getInMillisin interfaceBackOff- Parameters:
cause- exception causing the retry attempt before which the delay occurs- Returns:
- non-negative number
-
-