-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.flakysafety.ContinuouslyProvider
public final class ContinuouslyProviderImpl implements ContinuouslyProvider
The implementation of the ContinuouslyProvider interface.
-
-
Constructor Summary
Constructors Constructor Description ContinuouslyProviderImpl(Kaspresso kaspresso)
-
Method Summary
-
-
Constructor Detail
-
ContinuouslyProviderImpl
ContinuouslyProviderImpl(Kaspresso kaspresso)
-
-
Method Detail
-
continuously
<T extends Any> T continuously(Function0<T> action)
Invokes the given action during set timeout.
- Parameters:
action- the action to invoke.
-
continuously
<T extends Any> T continuously(Long timeoutMs, Long intervalMs, String failureMessage, Function0<T> action)
Invokes the given action during set timeout.
- Parameters:
timeoutMs- the timeout during which attempts will be made.intervalMs- the interval at which attempts will be made.failureMessage- the message to log on failure.action- the action to invoke.
-
-
-
-