Package 

Class ContinuouslyProviderImpl

    • Method Summary

      Modifier and Type Method Description
      <T extends Any> T continuously(Function0<T> action) Invokes the given action during set timeout.
      <T extends Any> T continuously(Long timeoutMs, Long intervalMs, String failureMessage, Function0<T> action) Invokes the given action during set timeout.
      • Methods inherited from class com.kaspersky.kaspresso.flakysafety.ContinuouslyProvider

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.