-
public final class FlakySafetyParamsThe class that holds all the necessary for com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderSimpleImpl parameters.
-
-
Field Summary
Fields Modifier and Type Field Description private LongtimeoutMsprivate LongintervalMsprivate final Set<Class<Out Throwable>>allowedExceptions
-
Method Summary
Modifier and Type Method Description final LonggetTimeoutMs()The timeout during which attempts will be made by the com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderSimpleImpl. final LonggetIntervalMs()The interval at which attempts will be made by the com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderSimpleImpl. final Set<Class<Out Throwable>>getAllowedExceptions()The set of exceptions, if caught, the com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderSimpleImpl will continue to attempt. final UnitsetTimeoutMs(Long timeoutMs)final UnitsetIntervalMs(Long intervalMs)-
-
Method Detail
-
getTimeoutMs
final Long getTimeoutMs()
The timeout during which attempts will be made by the com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderSimpleImpl.
-
getIntervalMs
final Long getIntervalMs()
The interval at which attempts will be made by the com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderSimpleImpl.
-
getAllowedExceptions
final Set<Class<Out Throwable>> getAllowedExceptions()
The set of exceptions, if caught, the com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderSimpleImpl will continue to attempt.
-
setTimeoutMs
final Unit setTimeoutMs(Long timeoutMs)
-
setIntervalMs
final Unit setIntervalMs(Long intervalMs)
-
-
-
-